예제 #1
0
 public override void Initialize()
 {
     this.m_Target             = (IGameObject)null;
     this.m_MorrigiRelic       = (MorrigiRelicControl)null;
     this.m_State              = MorrigiCrowstates.SEEK;
     this.m_RefreshTargetDelay = 0;
 }
예제 #2
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;
 }
예제 #3
0
 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;
             }
         }
     }
 }