Esempio n. 1
0
        /**
         * Prepares the sub-scene to become the new active scene, due to the active scene being removed.  The gameobject will be destroyed afterwards.
         */
        public void MakeMain()
        {
            if (mainCamera)
            {
                mainCamera.gameObject.SetActive(true);
                if (KickStarter.settingsManager.blackOutWhenInitialising)
                {
                    mainCamera.ForceOverlayForFrames(4);
                }
            }
            if (kickStarter)
            {
                kickStarter.gameObject.SetActive(true);
                KickStarter.SetGameEngine(kickStarter.gameObject);
            }

            KickStarter.sceneChanger.SubScenes.Remove(this);
            Destroy(gameObject);
        }