diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 305a381..0b9ba06 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -991,6 +991,51 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1162942023 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1162942025} + - component: {fileID: 1162942024} + m_Layer: 0 + m_Name: Quest Manager + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1162942024 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1162942023} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: bb2c090bb57f87f4cae2a4a2b973f815, type: 3} + m_Name: + m_EditorClassIdentifier: + day: 0 +--- !u!4 &1162942025 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1162942023} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.09575963, y: 0.91042876, z: 10.283886} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 10 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1676075837 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/QuestManager.cs b/Assets/Scripts/QuestManager.cs new file mode 100644 index 0000000..48aac1a --- /dev/null +++ b/Assets/Scripts/QuestManager.cs @@ -0,0 +1,47 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class QuestManager : MonoBehaviour +{ + public int day = 0; + + public Quest[] quests = { + new Quest(_name: "", _desc: "Find someone to hand out flyers to advertise our tavern to adventurers. Strength, dexterity, intelligence: doesn’t matter, find someone who would do this for as little money as possible.", _failedStr: "Damn, that didn’t work at all. That robot just randomly started playing an instrument, much to the dismay of the townspeople.", _strength: 0, _intelligence: 0, _charisma: 5), + }; + + // Start is called before the first frame update + void Start() + { + foreach (Quest quest in quests) + { + Debug.Log(quest.name); + Debug.Log(quest.description); + } + } + + // Update is called once per frame + void Update() + { + + } +} + +public class Quest +{ + public string name; + public string description; + public string failedStr; + public int strength, intelligence, charisma; + + public Quest(string _name, string _desc, string _failedStr, int _strength, int _intelligence, int _charisma) + { + this.name = _name; + this.description = _desc; + this.failedStr = _failedStr; + this.strength = _strength; + this.intelligence = _intelligence; + this.charisma = _charisma; + + } +} \ No newline at end of file diff --git a/Assets/Scripts/QuestManager.cs.meta b/Assets/Scripts/QuestManager.cs.meta new file mode 100644 index 0000000..989412d --- /dev/null +++ b/Assets/Scripts/QuestManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bb2c090bb57f87f4cae2a4a2b973f815 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: