private static void Postfix(InteriorLightingManager __instance) { if (!GameManager.m_IsPaused && AmbientLights.config != null && AmbientLights.config.ready && GameLights.gameLightsReady) { //AmbientLights.UpdateGameLights(); GameLights.UpdateLights(); } }
public static void UpdateGameLights(bool isDarkMngr = false) { /*foreach (AmbLight aLight in lightList) * { * aLight.UpdateGameLights(); * }*/ if (!isDarkMngr) { GameLights.UpdateLights(); } }