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