public void CompleteObjective()
        {
            QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>();
            string    objective = quest.GetObjective(objectiveIndex);

            questList.CompleteObjective(quest, objective);
        }
Esempio n. 2
0
        private void Awake()
        {
            locationManager = GetComponent <LocationManager>();
            GameObject playerGO = GameObject.FindGameObjectWithTag("Player");

            questList  = playerGO?.GetComponent <QuestList>();
            conversant = GetComponent <AIConversant>();
        }
        public void GiveQuest()
        {
            QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>();

            questList.AddQuest(quest);
        }