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