示例#1
0
 public void GiveQuest()
 {
     if (currentIndex < quests.Count)
     {
         QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>();
         questList.AddQuest(quests[currentIndex]);
         Debug.Log("Dałem questa " + quests[currentIndex]);
         currentIndex++;
     }
 }
示例#2
0
        public void GiveQuest()
        {
            QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>();

            questList.AddQuest(quest);
        }
示例#3
0
        public void GiveQuest()
        {
            QuestList player = GameObject.FindWithTag("Player").GetComponent <QuestList>();

            player.AddQuest(quest);
        }