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