This commit is contained in:
2024-10-16 00:03:41 +08:00
commit 897058435c
5033 changed files with 1009728 additions and 0 deletions

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