예제 #1
0
        public void CompleteObjective(Quest quest, string objective)
        {
            QuestStatus status = GetQuestStatus(quest);

            status.CompleteObjective(objective);
            if (status.IsComplete())
            {
                GiveReward(quest);
            }
            if (onUpdate != null)
            {
                onUpdate();
            }
        }
예제 #2
0
        public void CompleteObjective(Quest quest, string objective)
        {
            QuestStatus status = GetQuestStatus(quest);

            if (status != null)
            {
                status.CompleteObjective(objective);
                if (status.IsComplete())
                {
                    GiveReward(quest);
                }

                onQuestListUpdated?.Invoke();
            }
        }