public OvenRunning(Oven oven) { this.oven = oven; StateMsgForExamine = "running"; oven.OnSyncScreenGlow(oven.screenGlowEnabled, true); oven.OnSyncOvenGlow(oven.ovenGlowEnabled, true); oven.spriteHandlerOven.ChangeSprite((int)SpriteStateOven.Running); oven.spriteHandlerDoor.ChangeSprite((int)SpriteStateDoor.Closed); oven.SetWattage(oven.circuitWattage + oven.ovenBulbWattage + oven.magnetronWattage); }
public OvenUnpoweredOpen(Oven oven) { this.oven = oven; StateMsgForExamine = "unpowered and open"; oven.spriteHandlerOven.ChangeSprite((int)SpriteStateOven.Idle); oven.spriteHandlerDoor.ChangeSprite((int)SpriteStateDoor.Open); oven.OnSyncScreenGlow(oven.screenGlowEnabled, false); oven.OnSyncOvenGlow(oven.ovenGlowEnabled, false); oven.HaltOven(true); oven.SetWattage(oven.circuitWattage + oven.ovenBulbWattage); }
public OvenIdle(Oven oven) { this.oven = oven; StateMsgForExamine = "idle"; oven.spriteHandlerOven.ChangeSprite((int)SpriteStateOven.Idle); oven.spriteHandlerDoor.ChangeSprite((int)SpriteStateDoor.Closed); oven.OnSyncScreenGlow(oven.screenGlowEnabled, false); oven.OnSyncOvenGlow(oven.ovenGlowEnabled, false); oven.HaltOven(true); oven.SetWattage(oven.circuitWattage); }
private void Start() { oven = GetComponent <Oven>(); }