示例#1
0
 protected void UpdateObjective()
 {
     foreach (QuestData quest in objectiveFor)
     {
         if (questManager.RequestAcceptedQuest(quest.id))
         {
             questManager.AddQuestItemToQuest(quest.id, value);
         }
     }
 }
示例#2
0
    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);
            }
        }
    }