Forest_Client/Forest/Assets/Scripts/Gameplay/Game/MyGame.cs

44 lines
1.2 KiB
C#
Raw Normal View History

2024-06-12 15:01:54 +08:00
using PhxhSDK;
using Framework.UI;
using Framework.BI;
using Gameplay.Game;
using Framework.Login;
2024-06-12 15:01:54 +08:00
using Gameplay.Manager;
using Framework.Manager;
using Gameplay.LoadingExecutor;
namespace Gameplay
{
2024-08-07 15:22:09 +08:00
public class Forest_MyGame : PhxhSDK.Game
2024-06-12 15:01:54 +08:00
{
protected override void _RegisterSubSystems()
{
_Register<StorageManager>();
SDKManager.Instance.AfterLoginInit();
_Register<BIManager>();
_Register<UIManager>();
_Register<AudioManager>();
_Register<LevelManager>();
_Register<LoginManager>();
2024-07-24 19:01:44 +08:00
_Register<GuideMananger>();
2024-06-12 15:01:54 +08:00
_Register<CameraManager>();
_Register<AppInfoManager>();
_Register<GameStateManager>();
_Register<LevelSelectManager>();
_Register<LoadingExecutorManager>();
SDKManager.Instance.Init();
}
protected override void _OnAllSystemStarted()
{
2024-07-18 20:01:43 +08:00
GameStateManager.Instance.ChangeState(new GameStateStart());
2024-06-12 15:01:54 +08:00
}
private void _Register<T>() where T : class, new()
{
_subSystemManager.AddSubSystem<T>();
}
}
}