Merge Journal, Quest and Dialog systems

This commit is contained in:
2023-07-08 21:08:01 +02:00
parent 34fb3715f3
commit fd68064b16
12 changed files with 1849 additions and 84 deletions

View File

@@ -4,12 +4,26 @@ using UnityEngine;
public class QuestManager : MonoBehaviour
{
public static QuestManager Instance;
public int activeQuest = 0;
public Quest[] quests = {
new Quest(_name: "Advert Quest 1", _desc: "Find someone to hand out flyers to advertise our tavern to adventurers. Strength, dexterity, intelligence: doesn<73>t matter, find someone who would do this for as little money as possible.", _failedStr: "Damn, that didn<64>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),
};
private void Awake()
{
if (Instance == null)
{
Instance = this;
}
else
{
Debug.LogWarning("There can only be one instance of the CharacterManager class");
}
}
// Start is called before the first frame update
void Start()
{
@@ -20,11 +34,11 @@ public class QuestManager : MonoBehaviour
}
}
// Update is called once per frame
void Update()
public Quest GetActiveQuest()
{
return quests[activeQuest];
}
}
[System.Serializable]