Example #1
0
 public override void stop()
 {
     if (!this.isBroken)
     {
         this.isBroken = true;
         this.timer    = this.timeToFix;
         machineTimerBar.initBar(2.1f, 1.7f);
         animator.SetBool("FurnaceIsBroken", true);
     }
 }
Example #2
0
 public override void stop()
 {
     if (!this.isBroken)
     {
         this.isBroken = true;
         this.Reset();
         this.timer = this.timeToFix;
         machineTimerBar.initBar(2.1f, 1.7f);
         GetComponent <SpriteRenderer>().sprite = spriteValveBroken;
     }
 }
Example #3
0
 public override void stop()
 {
     if (!this.isBroken)
     {
         this.isBroken = true;
         this.Reset();
         this.timer = this.timeToFix;
         machineTimerBar.initBar(2.1f, 1.7f);
         transform.Find("SteamAnimationGameObject").gameObject.SetActive(true);
         //GetComponent<SpriteRenderer>().sprite = spritePipeBroken;
     }
 }