public override void PileEmpty(ElementPile pile) { nPiles--; if (nPiles == 0) connectWires(); }
public virtual void PileEmpty(ElementPile pile) { }
public override void PileEmpty(ElementPile pile) { base.PileEmpty(pile); nPiles--; }
void Start() { animator = GetComponent(typeof(Animator)) as Animator; infoAnimator = InfoBox.GetComponent(typeof(Animator)) as Animator; if (tag == "Resistor") ResPile = this; if (tag == "Battery") BattPile = this; if (tag == "Lamp") LampPile = this; if (tag == "Switch") SwitchPile = this; if (tag == "AND") AndPile = this; if (tag == "OR") OrPile = this; if (tag == "NOT") NotPile = this; collider.enabled = false; }