public override void ObjectRemoved(IGameObject obj) { if (this.m_LocustNest != null && this.m_LocustNest.GetShip() == obj) { this.m_LocustNest = (LocustNestControl)null; } if (this.m_Target != obj) { return; } this.m_Target = (IGameObject)null; }
public override void FindParent(IEnumerable <CombatAIController> controllers) { foreach (CombatAIController controller in controllers) { if (controller is LocustNestControl) { LocustNestControl locustNestControl = controller as LocustNestControl; if (locustNestControl.IsThisMyNest(this.m_LocustFighter)) { locustNestControl.AddFighter((CombatAIController)this); this.m_LocustNest = locustNestControl; break; } } } }
public override void Initialize() { this.m_Target = (IGameObject)null; this.m_LocustNest = (LocustNestControl)null; this.m_State = LocustFighterStates.IDLE; }