void OnPlanetSceneUnloaded(Scene scene) { SceneManager.sceneUnloaded -= OnPlanetSceneUnloaded; SceneManager.sceneLoaded += OnPlanetSceneLoaded; //GetParentalController().SetProc(Procs_BaseActController._Main); SceneManager.LoadSceneAsync(MainRoot.GetAppConf().worldToLoad, LoadSceneMode.Additive); }
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); }
void OnActSceneLoaded(Scene scene, LoadSceneMode mode) { SceneManager.sceneLoaded -= OnActSceneLoaded; MainRoot.GetAppConf().LoadAppCamera(); }