Files
taptap2024_GJ_chidouren/Assets/Scripts/System/StateSystem/State/StateGameBegin.cs
2024-10-16 00:03:41 +08:00

33 lines
1.0 KiB
C#

using System;
using System.StateSystem;
using Framework.FSMLite;
using Framework.UI.SystemUI.Script;
using IcecreamView;
namespace StateSystem.State
{
public class StateGameBegin: StateMachine<GameGlobalState>
{
protected override void OnEnter(params object[] args)
{
// #if !UNITY_EDITOR || (SystemUITest && UNITY_EDITOR)
// SystemUIMgr.Instance.OpenView(SystemUIMgr.GameAdvicePanel , new IC_ViewData(new Action(OnComplete)));
// #else
// SystemUIMgr.Instance.OpenView(SystemUIMgr.GameAdvicePanel , new IC_ViewData(new Action(OnComplete)));
// #endif
CameraEffectUtils.Instance.SetGameCamBlur (0 , 0 , null);
//初始基础加载页面
BeginStaticPanel.Create ();
OnComplete();
}
private void OnComplete()
{
GameStateManager.Instance.OpenState(GameGlobalState.GameAssetCheck , GameGlobalConfig.Instance.AssetRemotePath);
}
protected override void OnExit()
{
}
}
}