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

24 lines
1.0 KiB
C#

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);
}
}
}