You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
33
Assets/Scripts/System/StateSystem/State/StateGameBegin.cs
Normal file
33
Assets/Scripts/System/StateSystem/State/StateGameBegin.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user