public void CompleteObjective() { QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>(); if (questList.HasQuest(quest)) { questList.CompleteObjective(quest, objective); } }
public virtual void GiveQuest() { QuestList questList = GameObject.FindGameObjectWithTag("Player").GetComponent <QuestList>(); questList.AddQuest(quest); }