// Used for initialisation.
 void Awake()
 {
     actionDirectory = GetComponent <ActionDirectory>();
     goalDirectory   = GetComponent <GoalDirectory>();
     actionQueue     = GetComponent <ActionQueue>();
     manager         = GameObject.Find("GameManager").GetComponent <GameManager>();
     currentGoal     = null;
     running         = false;
 }
Ejemplo n.º 2
0
 void Awake()
 {
     manager         = GameObject.Find("GameManager").GetComponent <GameManager>();
     actionDirectory = GetComponent <ActionDirectory>();
 }