示例#1
0
 void OnPlanetSceneUnloaded(Scene scene)
 {
     SceneManager.sceneUnloaded -= OnPlanetSceneUnloaded;
     SceneManager.sceneLoaded   += OnPlanetSceneLoaded;
     //GetParentalController().SetProc(Procs_BaseActController._Main);
     SceneManager.LoadSceneAsync(MainRoot.GetAppConf().worldToLoad, LoadSceneMode.Additive);
 }
示例#2
0
            protected void thisEnter()
            {
                AppI_Debug.ShowMsg("BaseAct Controller proc_Boot thisEnter");

                SceneManager.sceneUnloaded += OnPlanetSceneUnloaded;

                ((BaseActController)actBase).planeObj.SetActive(true);
                ((BaseActController)actBase).terrainObj.SetActive(true);
                ((BaseActController)actBase).sunObj.SetActive(false);

                SceneManager.UnloadSceneAsync(MainRoot.GetAppConf().homeToLoad);
            }
示例#3
0
 void OnActSceneLoaded(Scene scene, LoadSceneMode mode)
 {
     SceneManager.sceneLoaded -= OnActSceneLoaded;
     MainRoot.GetAppConf().LoadAppCamera();
 }