You've already forked taptap2024_GJ_chidouren
updat core
This commit is contained in:
@@ -17,6 +17,7 @@ using Framework.Timer;
|
||||
using Framework.UI;
|
||||
using Framework.Utils;
|
||||
using Framework.Utils.Extend;
|
||||
using Game;
|
||||
using Runtime.ADAggregator;
|
||||
using StateSystem.Loader;
|
||||
using TMPro;
|
||||
@@ -33,7 +34,8 @@ namespace StateSystem.State
|
||||
{
|
||||
public class StateInit : StateMachine<GameGlobalState>
|
||||
{
|
||||
private SceneLoader _sceneLoader;
|
||||
public static bool HasTempGame;
|
||||
private SceneLoader _sceneLoader;
|
||||
protected override void OnEnter (params object[] args)
|
||||
{
|
||||
CameraEffectUtils.Instance.SetGameCamBlur(0, 0, null);
|
||||
@@ -55,10 +57,12 @@ namespace StateSystem.State
|
||||
{
|
||||
this._sceneLoader = new SceneLoader (SceneName.InitScene, true);
|
||||
this._sceneLoader.BeginLoad (null, ManagerInit);
|
||||
HasTempGame = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
ManagerInit ();
|
||||
HasTempGame = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +143,14 @@ namespace StateSystem.State
|
||||
GameUpdateMgr.Instance.CreateTimer (1f , () =>
|
||||
{
|
||||
BeginStaticPanel.ReleasePanel ();
|
||||
this.stateMachineRunner.OpenState (GameGlobalState.GameRoom);
|
||||
if (HasTempGame)
|
||||
{
|
||||
this.stateMachineRunner.OpenState (GameGlobalState.GameRoom);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.stateMachineRunner.OpenState (GameGlobalState.GameHome);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user