Serialize Quest

This commit is contained in:
Minz committed 2023-07-08 17:10:06 +02:00
1 parent 17698b4842
commit 3b72c6a01a
1 file changed
+3 -2
+3 -2
View File
@@ -4,10 +4,10 @@ using UnityEngine;
public class QuestManager : MonoBehaviour
{
public int day = 0;
public int activeQuest = 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),
new Quest(_name: "Advert Quest 1", _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
@@ -27,6 +27,7 @@ public class QuestManager : MonoBehaviour
}
}
[System.Serializable]
public class Quest
{
public string name;