You've already forked taptap2024_GJ_chidouren
updat core
This commit is contained in:
@@ -60,7 +60,7 @@ namespace Views
|
||||
var particle = this._pool.Create ();
|
||||
particle.rectTransform.anchoredPosition = localPos;
|
||||
particle.Play ();
|
||||
GameUpdateMgr.Instance.CreateTimer (0.5f , () => { this._pool.Destroy (particle); });
|
||||
GameUpdateMgr.Instance.CreateTimer (1.5f , () => { this._pool.Destroy (particle); });
|
||||
}
|
||||
|
||||
// [BindUIEvent(GameEventCode.OnScreenFlicker)]
|
||||
|
||||
@@ -46,7 +46,7 @@ Material:
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- Vector1_c9f2135c9d254951b22c018d295f8558: 0.003
|
||||
- _blurOffset: 0.017
|
||||
- _blurOffset: 1
|
||||
m_Colors: []
|
||||
m_BuildTextureStacks: []
|
||||
--- !u!114 &268278646524644520
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
@@ -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