public void UpdateQuestProgress(QuestPrefab quest) { AnnouncementManager.Instance.CreateAnnouncement(quest.announcementNotification + " " + requirementList[quest].CurrentAmount + " / " + requirementList[quest].RequiredAmount); if (requirementList[quest].CurrentAmount >= requirementList[quest].RequiredAmount) { sound.Play(); requirementList[quest].CurrentAmount = requirementList[quest].RequiredAmount; QuestTracker.Instance.questList[quest] = (int)QuestTracker.States.IsSuitableToFinish; } }
public void MakeQuestAvailable(string questName) { QuestPrefab desirableQuest = FetchQuestByName(questName); if (desirableQuest != null) { questList[desirableQuest] = (int)States.Available; } else { Debug.Log("Such quest isn't in the database"); } }