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(); }
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; } }
public void SetAIB(AIBase aib) { AIB = aib; LG = new List <AILegs>(aib.GetComponentsInChildren <AILegs>()); dlegs = LG.Count; }
public void Eject() { AIB = null; }
public void SetAIB(AIBase aib) { AIB = aib; }