public override void Enter() { // Try to get a target aI_Controller.target = AreaController.instance.character_generator.hero_GObj; // If you got one, Seek! if (aI_Controller.target != null) { // enter seek state aI_Controller.PushState(StateType.Seek); return; } // no target... // Pool? }
void Attack() { aI_Controller.PushState(StateType.Attack); }