protected void UpdateObjective() { foreach (QuestData quest in objectiveFor) { if (questManager.RequestAcceptedQuest(quest.id)) { questManager.AddQuestItemToQuest(quest.id, value); } } }
public void UpdateQuestObjectives(int amount = 1) { QuestManager questManager = QuestManager.Instance; foreach (QuestData quest in objectiveForList) { if (questManager.RequestAcceptedQuest(quest.id)) { questManager.AddQuestItemToQuest(quest.id, amount); } } }