// Use this for initialization void Start() { aiUnit_ = this.GetComponent <AIUnit>(); aiSight_ = aiSight_.GetComponent <AISight>(); subState = SubState.Empty; }
// Use this for initialization void Start() { aiUnit_ = this.GetComponent <AIUnit>(); aiSight_ = aiSight_.GetComponent <AISight>(); retreating_ = false; //Get Path to Flag aiUnit_.getNewPath(aiUnit_.startNode, aiUnit_.targetNode); subState = SubState.Capturing; }