private void CoolDown(ProcessorManager processor) { float coolDownPercent = TimerProgressPercent(processor, stateTimers[ProcessorState.CoolingDown]); processor.TintProcessorSprite(maxHeatupColor, Color.white, coolDownPercent); if(coolDownPercent >= 0.99f) { processor.SetProcessorSpriteColor(Color.white); TransitionToCool(processor); } }
private void HeatUp(ProcessorManager processor) { float heatUpPercent = TimerProgressPercent(processor, stateTimers[ProcessorState.HeatingUp]); processor.TintProcessorSprite(Color.white, maxHeatupColor, heatUpPercent); if(heatUpPercent >= 0.99f) { processor.SetProcessorSpriteColor(Color.red); TransitionToHot(processor); } }