Beispiel #1
0
        public static void LoadConfigs()
        {
            currentScene = GameManager.m_ActiveScene;

            //Debug.Log("[ambient-lights] Loaded Scene: " + currentScene);
            ALUtils.Log("Loading Scene: " + currentScene, false, true);

            if (currentScene != "MainMenu")
            {
                config = new LightConfig();
                config.Load();

                if (config.ready)
                {
                    currentLightSet = config.GetCurrentLightSet();
                }

                SetupLights();
            }
        }
Beispiel #2
0
        public static void Reset(bool firstPass = true)
        {
            debugVer = Settings.options.verbose;
            verbose  = Settings.options.verbose;

            ALUtils.Log("Scene reset.", false);

            lightList.Clear();

            config = null;

            lightsInit = false;

            lightOverride    = false;
            showGameLights   = false;
            enableGameLights = true;

            if (firstPass)
            {
                TimeWeather.Reset();
                timeInit    = false;
                weatherInit = false;
            }
        }