You've already forked taptap2024_GJ_chidouren
updat core
This commit is contained in:
@@ -23,17 +23,18 @@ namespace StateSystem.State
|
||||
|
||||
AudioManager.Instance.PlayBGM (BgmAudio.LobbyBgm);
|
||||
GameUpdateMgr.Instance.AddUpdater (DoUpdate);
|
||||
var activeScene = SceneManager.GetActiveScene ();
|
||||
if (activeScene.name != SceneName.MainScene.ToString ())
|
||||
{
|
||||
Debug.Log ("进入Home,开始加载场景:" + SceneName.MainScene.ToString ());
|
||||
this._loader = new SceneLoader (SceneName.MainScene);
|
||||
this._loader.BeginLoad (OnLoading, OnActived);
|
||||
}
|
||||
else
|
||||
{
|
||||
OnActived ();
|
||||
}
|
||||
// var activeScene = SceneManager.GetActiveScene ();
|
||||
// if (activeScene.name != SceneName.MainScene.ToString ())
|
||||
// {
|
||||
// Debug.Log ("进入Home,开始加载场景:" + SceneName.MainScene.ToString ());
|
||||
// this._loader = new SceneLoader (SceneName.MainScene);
|
||||
// this._loader.BeginLoad (OnLoading, OnActived);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// OnActived ();
|
||||
// }
|
||||
OnActived ();
|
||||
}
|
||||
|
||||
private void OnLoading (float obj)
|
||||
@@ -57,7 +58,7 @@ namespace StateSystem.State
|
||||
protected override void OnExit ()
|
||||
{
|
||||
GameUpdateMgr.Instance.RemoveUpdater (DoUpdate);
|
||||
this._loader.Kill ();
|
||||
// this._loader.Kill ();
|
||||
}
|
||||
|
||||
private void DoUpdate ()
|
||||
|
||||
Reference in New Issue
Block a user