IEnumerator OnInitSceneSucced(SceneRootEntry sceneRoot) { LoadingLogic.AddCustomProgress(5); if (m_SceneRootEntry != null) { m_SceneRootEntry.ShowLevel(); } SetShadowQuality(sceneRoot); SetLayerMask(sceneRoot); sceneRoot.SetZonesTag(); sceneRoot.SetMainLight(); LoadingLogic.AddCustomProgress(15); PSPoolManager.Instance.LoadStandardMainlandFX(); yield return(new WaitUntil(() => { LoadingLogic.AddCustomProgress(1); return HudLoadManager.Completed; })); GlobalMenuManager.PopCaches(); MainLandLogic.GetInstance().FreshMapName(); MainLandLogic.GetInstance().OnSceneViewLoaded(); MainLandLogic.GetInstance().RobDartFight(); GameEngine.Instance.IsRunFromEnterGameBtn = false; LoadingLogic.AddCustomProgress(5); }
protected virtual void SceneLoadFinished(SceneRootEntry sceneRoot) { if (sceneRoot != null) { sceneRoot.ShowLevel(); } UIStack.Instance.HideLoadingScreen(); }
protected override void SceneLoadFinished(SceneRootEntry sceneRoot) { LoadingLogic.AddCustomProgress(15); if (sceneRoot != null) { sceneRoot.ShowLevel(); } SceneLogic.SceneState = SceneLogic.eSceneState.SceneLoop; //UIStack.Instance.HideLoadingScreen(false); }
void HandleFinished(SceneRootEntry entry) { // may be destroyed, 如果进了if则会卡76% if (Equals(null)) { EB.Debug.LogError("[ThemeLoadManager].HandleFinished===> Equals(null)"); entry.DestroyLevel(); return; } if (entry.IsLoaded()) { entry.SetParent(gameObject); entry.ShowLevel(); } m_OnFinished?.Invoke(entry); }
IEnumerator InitializeSceneCoroutine(SceneRootEntry sceneRoot) { LoadingLogic.AddCustomProgress(10); EB.Debug.Log("LoginProfile {0}", ((float)((System.DateTime.UtcNow.Ticks / 10000) % 100000) / 1000)); if (m_SceneRootEntry != null) { m_SceneRootEntry.ShowLevel(); } while (!SceneLogic.MainHeroLoadComplete) { yield return(null); } LoadingLogic.AddCustomProgress(15); SetShadowQuality(sceneRoot); while (!HudLoadManager.Completed) { yield return(null); } UI3DLobby[] lobbys = GameObjectExtension.FindMonoILRObjectsOfType <UI3DLobby>("Hotfix_LT.UI.UI3DLobby", "Hotfix_LT.UI.UI3DVsLobby"); if (lobbys != null) { if (lobbys != null && lobbys.Length > 0) { for (var i = 0; i < lobbys.Length; i++) { var lobby = lobbys[i]; if (lobby != null) { EB.Debug.LogWarning("CombatViewAction: SceneLoadFinished Clean lobby = {0} ---> gameObject name: {1}", lobby, lobby.mDMono.name); GameObject.Destroy(lobby.mDMono.gameObject); } } } } LTMainHudManager.Instance.SetsFromFirstBattleType(false); if (SceneLogic.BattleType == eBattleType.FirstBattle) { LTMainHudManager.Instance.SetsFromFirstBattleType(true); UIStack.Instance.HideLoadingScreenImmediately(false, false); } else if (SceneLogic.isPVP()) { UIStack.Instance.WaitForOtherPlayer(); } else { //UIStack.Instance.HideLoadingScreenImmediately(false, false); } GM.AssetManager.RecordLoadEnd("CombatViewAction", "HideLoadingScreen"); LTCombatEventReceiver.Instance?.OnCombatViewLoaded(); MainLandLogic.GetInstance().OnCombatViewLoaded(); EB.Debug.Log("LoginProfile {0}", ((float)((System.DateTime.UtcNow.Ticks / 10000) % 100000) / 1000)); EB.Debug.Log("To initialize scene."); LoadingLogic.AddCustomProgress(5); }