Example #1
0
 public MicrowaveRunning(Microwave microwave)
 {
     this.microwave     = microwave;
     StateMsgForExamine = "running";
     microwave.ScreenGlow.SetActive(true);
     microwave.OvenGlow.SetActive(true);
     microwave.spriteHandler.ChangeSprite(2);
 }
Example #2
0
 public MicrowaveBrokenOpen(Microwave microwave)
 {
     this.microwave     = microwave;
     StateMsgForExamine = "broken and open";
     microwave.spriteHandler.ChangeSprite(6);
     microwave.ScreenGlow.SetActive(false);
     microwave.OvenGlow.SetActive(false);
     microwave.HaltMicrowave();
 }
Example #3
0
 public MicrowaveUnpoweredOpen(Microwave microwave)
 {
     this.microwave     = microwave;
     StateMsgForExamine = "unpowered and open";
     microwave.spriteHandler.ChangeSprite(4);
     microwave.ScreenGlow.SetActive(false);
     microwave.OvenGlow.SetActive(false);
     microwave.HaltMicrowave();
 }
Example #4
0
 public MicrowaveOpen(Microwave microwave)
 {
     this.microwave     = microwave;
     StateMsgForExamine = "open";
     microwave.spriteHandler.ChangeSprite(1);
     microwave.ScreenGlow.SetActive(true);
     microwave.OvenGlow.SetActive(true);
     microwave.HaltMicrowave();
 }
Example #5
0
 public MicrowaveIdle(Microwave microwave)
 {
     this.microwave     = microwave;
     StateMsgForExamine = "idle";
     microwave.spriteHandler.ChangeSprite(0);
     microwave.ScreenGlow.SetActive(true);
     microwave.OvenGlow.SetActive(false);
     microwave.HaltMicrowave();
 }
 private void Start()
 {
     microwave = GetComponent <Microwave>();
 }