Example #1
0
 public void DisableLight(int indexLight)
 {
     if (activeLights.Contains(indexLight))
     {
         activeLights.Remove(indexLight);
         OnLightStateChanged?.Invoke(indexLight, false);
     }
 }
Example #2
0
 public void EnableLight(int indexLight)
 {
     if (!activeLights.Contains(indexLight))
     {
         activeLights.Add(indexLight);
         OnLightStateChanged?.Invoke(indexLight, true);
     }
 }