Пример #1
0
 public void NormalModeActivate()
 {
     if (emergencyLights.GetLightState() == LightsState.Emergency)
     {
         switchAcitve.PlayPowerOnSound();
     }
     emergencyLights.SetLightState(LightsState.Normal);
 }
Пример #2
0
 public void UseGenerator()
 {
     switchAcitve.PlayPowerOnSound();
     emergencyLights.SetLightState(LightsState.Emergency);
 }