public override void Initialize() { this.m_Target = (IGameObject)null; this.m_MorrigiRelic = (MorrigiRelicControl)null; this.m_State = MorrigiCrowstates.SEEK; this.m_RefreshTargetDelay = 0; }
public override void ObjectRemoved(IGameObject obj) { if (this.m_MorrigiRelic != null && this.m_MorrigiRelic.GetShip() == obj) { this.m_MorrigiRelic = (MorrigiRelicControl)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 MorrigiRelicControl) { MorrigiRelicControl morrigiRelicControl = controller as MorrigiRelicControl; if (morrigiRelicControl.IsThisMyRelic(this.m_MorrigiCrow)) { morrigiRelicControl.AddCrow((CombatAIController)this); this.m_MorrigiRelic = morrigiRelicControl; break; } } } }