Пример #1
0
        public void CompleteObjective()
        {
            QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>();

            if (questList.HasQuest(quest))
            {
                questList.CompleteObjective(quest, objective);
            }
        }
Пример #2
0
        public virtual void GiveQuest()
        {
            QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>();

            questList.AddQuest(quest);
        }