コード例 #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);
        }