Пример #1
0
        private void Update()
        {
            try
            {
                string curscene = SceneManager.GetActiveScene().name;
                var    config   = Settings.instance;
                if (skyboxObject == null)
                {
                    LoadBackground(Settings.instance.SelectedBackground);
                }
                skyboxObject.transform.eulerAngles = new Vector3(0, config.RotationOffset - 90, 180);
                switch (curscene)
                {
                case "GameCore":
                    EnvironmentHider.HideGameEnv();
                    break;

                case "MainMenu":
                case "MenuCore":
                    EnvironmentHider.HideMenuEnv();
                    break;
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #2
0
 [UIAction("hideobj-refresh")] private void RefreshHiddenObjects(bool val) => EnvironmentHider.HideMenuEnv();
 private void _SetHideGameEnvs(bool newval)
 {
     Settings.instance.HideGameEnv = newval;
     EnvironmentHider.HideMenuEnv();
 }