public void Eject()
 {
     AIB             = null;
     EX.extensionEnd = null;
     Destroy(EX);
     Destroy(this);
 }
 public void SetAIB(AIBase aib)
 {
     AIB = aib;
     EX  = GetComponentInChildren <General.Extender>();
     if (EX == null)
     {
         Debug.Log("No extender!");
     }
     //extendtime = (EX.maxext+ 0.02f)* EX.cooldown;
     //throw new NotImplementedException();
 }
Beispiel #3
0
        public void Eject()
        {
            if (!AIB.hostile)
            {
                AIB.hostile = true;
            }
            AIB.SwitchTargets(null, false);
            AIB = null;

            Interact.DoDialog D = GetComponent <Interact.DoDialog>();
            if (D != null)
            {
                D.enabled = true;
            }
        }
Beispiel #4
0
 public void SetAIB(AIBase aib)
 {
     AIB   = aib;
     LG    = new List <AILegs>(aib.GetComponentsInChildren <AILegs>());
     dlegs = LG.Count;
 }
Beispiel #5
0
 public void Eject()
 {
     AIB = null;
 }
Beispiel #6
0
 public void SetAIB(AIBase aib)
 {
     AIB = aib;
 }