You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
24
Assets/Scripts/System/StateSystem/GameStateManager.cs
Normal file
24
Assets/Scripts/System/StateSystem/GameStateManager.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.StateSystem;
|
||||
using System.StateSystem.State;
|
||||
using Framework.FSMLite;
|
||||
using Framework.Utils.SingletonTemplate;
|
||||
using StateSystem.State;
|
||||
|
||||
namespace StateSystem
|
||||
{
|
||||
public class GameStateManager : SingletonBase<StateMachineRunner<GameGlobalState>, GameStateManager>
|
||||
{
|
||||
protected override void OnInit()
|
||||
{
|
||||
_instance.AppendState<StateGameBegin>(GameGlobalState.GameBegin);
|
||||
_instance.AppendState<StateInit>(GameGlobalState.GameInit);
|
||||
_instance.AppendState<StateCheckAsset>(GameGlobalState.GameAssetCheck);
|
||||
_instance.AppendState<StateLoading>(GameGlobalState.GameLoading);
|
||||
_instance.AppendState<StateHome>(GameGlobalState.GameHome);
|
||||
_instance.AppendState<StateRoom>(GameGlobalState.GameRoom);
|
||||
_instance.AppendState<StateLogin>(GameGlobalState.GameLogin);
|
||||
_instance.AppendState<StateCertification>(GameGlobalState.Certification);
|
||||
_instance.AppendState<StateExit>(GameGlobalState.GameExit);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user