public void MarkQuestsAsComplete(string[] completedQuests, int completeCount) { for (int i = 0; i < completeCount; i++) { ActiveQuests.MarkQuestAsComplete(completedQuests[i]); } }
IEnumerator endChaseFade() { float a = 0; while (a < 1) { a += 0.01f; fadeToBlack.color = new Color(0, 0, 0, a); yield return(new WaitForSeconds(0.01f)); } thief.SetActive(false); car.Exit(); ActiveQuests.MarkQuestAsComplete("CatchThief"); documentStoreWorker.StartDialogue(); yield return(new WaitForSeconds(1.3f)); while (a > 0) { a -= 0.01f; fadeToBlack.color = new Color(0, 0, 0, a); yield return(new WaitForSeconds(0.01f)); } }
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); } } }