IEnumerator LoadingScenesProgress() { _asyOper = SceneManager.LoadSceneAsync("2_LoginScene"); GlobalParamsMgr.NextSceneName = SceneEnum.LoginScene; _asyOper = SceneManager.LoadSceneAsync(ConverterEnumToStr.getInstance().getStrSceneByEnumScene(GlobalParamsMgr.NextSceneName)); _currentLoadingValue = _asyOper.progress; yield return(_asyOper); }
/// <summary> /// 进入下一场景 /// </summary> /// <param name="scenesEnumName"> 场景(枚举)名称</param> protected void EnterNextScenes(SceneEnum scenesEnumName) { // 转入下一场景 GlobalParamsMgr.NextSceneName = scenesEnumName; SceneManager.LoadScene(ConverterEnumToStr.getInstance().getStrSceneByEnumScene(GlobalParamsMgr.NextSceneName));// 加载新的场景 }