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