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