Ejemplo n.º 1
0
 public void SwitchLights(LightSetting setting, params Light[] lights)
 {
     LightSetting[] settings = new LightSetting[lights.Length];
     for (int i = 0; i < settings.Length; i++)
     {
         settings[i] = setting;
     }
     Physical.ChangeLightStates(lights, settings);
 }
Ejemplo n.º 2
0
 public void SwitchToLights(params Light[] lights)
 {
     Light[]        allLights = (Light[])Enum.GetValues(typeof(Light));
     LightSetting[] settings  = new LightSetting[EtsInterface.LightsCount];
     for (int i = 0; i < settings.Length; i++)
     {
         settings[i] = LightSetting.Off;
     }
     for (int i = 0; i < lights.Length; i++)
     {
         settings[(int)lights[i]] = LightSetting.On;
     }
     Physical.ChangeLightStates(allLights, settings);
 }