Beispiel #1
0
 // TODO I don't like that this scriptable object interfaces with an outside gameobject but i can't really think
 // of a better way to send the current quest task to the canvas quest log.
 public void ShowCurrentTasksInLog()
 {
     if (!active)
     {
         return;
     }
     GameObject.Find("UIQuestLog(Clone)").transform.GetChild(0).GetComponentInChildren <Text>().text += questName + '\n';
     if (complete)
     {
         GameObject.Find("UIQuestLog(Clone)").transform.GetChild(0).GetComponentInChildren <Text> ().text += " - Complete";
         return;
     }
     else
     {
         currentObjective.ShowCurrentTasksInLog();
     }
 }