Example #1
0
 public override void PileEmpty(ElementPile pile)
 {
     nPiles--;
     if (nPiles == 0) connectWires();
 }
Example #2
0
 public virtual void PileEmpty(ElementPile pile)
 {
 }
Example #3
0
 public override void PileEmpty(ElementPile pile)
 {
     base.PileEmpty(pile);
     nPiles--;
 }
Example #4
0
 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;
 }