Beispiel #1
0
 public GriddleRunning(Griddle griddle)
 {
     this.griddle       = griddle;
     StateMsgForExamine = "running";
     griddle.spriteHandler.ChangeSprite((int)SpriteState.Running);
     griddle.SetWattage(griddle.circuitWattage + griddle.magnetronWattage);
 }
Beispiel #2
0
 public GriddleUnpowered(Griddle griddle)
 {
     this.griddle       = griddle;
     StateMsgForExamine = "unpowered";
     griddle.spriteHandler.ChangeSprite((int)SpriteState.Idle);
     griddle.HaltGriddle();
     griddle.SetWattage(griddle.circuitWattage);
 }
 private void Start()
 {
     griddle = GetComponent <Griddle>();
 }