Ejemplo n.º 1
0
        public void CompleteSelectedObjective(string objective)
        {
            QuestList questList = GameObject.FindWithTag("Player").GetComponent <QuestList>();

            foreach (QuestsToComplete questToComplete in questsToComplete)
            {
                if (questToComplete.quest.HasObjective(objective))
                {
                    questList.CompleteObjective(questToComplete.quest, objective);
                    return;
                }
            }
        }
Ejemplo n.º 2
0
        public void CompleteObjective()
        {
            QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>();

            questList.CompleteObjective(quest, objective);
        }