コード例 #1
0
            void Start()
            {
                Debug.Log("KSCTriggers", "");
                Debug.Log("KSCTriggers", ">>>>>  START  <<<<<");

                if (!skip && HighLogic.CurrentGame != null)
                {
                    Debug.Log("KSCTriggers.Start", "Current game mode = " + HighLogic.CurrentGame?.Mode + ", seed = " + HighLogic.CurrentGame?.Seed);
                    CustomSkyBox skybox = new CustomSkyBox((Mode)HighLogic.CurrentGame.Mode, HighLogic.CurrentGame.Seed);
                    skybox.ApplyTo(GalaxyCubeControl.Instance?.gameObject);
                }
            }
コード例 #2
0
            void Start()
            {
                Debug.Log("MenuTriggers", "");
                Debug.Log("MenuTriggers", ">>>>>  START  <<<<<");

                Debug.Log("MenuTriggers.Start", "Resetting GalaxyCubeControl");
                GalaxyCubeControl.Instance?.Reset();

                GameObject galaxy = GameObject.Find("MainMenuGalaxy");

                Debug.Log("MenuTriggers.Start", "MainMenuGalaxy = " + galaxy);

                CustomSkyBox skybox = new CustomSkyBox(Mode.MAINMENU, Math.Abs(DateTime.Today.GetHashCode()));

                skybox.ApplyTo(galaxy);
            }