Exemple #1
0
    private void Start()
    {
        rt       = GetComponent <RectTransform>();
        posStart = rt.position;

        // DEBUG STARTING QUEST
        ActiveQuests.AddQuest(debugStartQuest.name, debugStartQuest);
    }
Exemple #2
0
 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);
            }
        }
    }
Exemple #4
0
 public void AddQuestToActiveQuests()
 {
     ActiveQuests.AddQuest(name, this);
 }