private void Start() { rt = GetComponent <RectTransform>(); posStart = rt.position; // DEBUG STARTING QUEST ActiveQuests.AddQuest(debugStartQuest.name, debugStartQuest); }
public void LoadQuests(string[] questsAcquired, int questCount) { for (int i = 0; i < questCount; i++) { Quest questToAdd; quests.TryGetValue(questsAcquired[i], out questToAdd); ActiveQuests.AddQuest(questToAdd.name, questToAdd); } }
private void UpdateQuests(DialogueData dialogue) { foreach (Quest quest in dialogue.questsToAdd) { if (!ActiveQuests.HasQuest(quest.name)) { ActiveQuests.AddQuest(quest.name, quest); } } foreach (Quest quest in dialogue.questsToComplete) { if (ActiveQuests.HasQuest(quest.name)) { ActiveQuests.MarkQuestAsComplete(quest.name); } } }
public void AddQuestToActiveQuests() { ActiveQuests.AddQuest(name, this); }