public void CompleteObjective() { QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>(); string objective = quest.GetObjective(objectiveIndex); questList.CompleteObjective(quest, objective); }
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); }