You've already forked taptap2024_GJ_chidouren
24 lines
1.0 KiB
C#
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);
|
|
}
|
|
}
|
|
} |