2024-06-12 15:01:54 +08:00
|
|
|
using PhxhSDK;
|
|
|
|
using Framework.UI;
|
|
|
|
using Framework.BI;
|
|
|
|
using Gameplay.Game;
|
|
|
|
using Gameplay.Login;
|
|
|
|
using Gameplay.Manager;
|
|
|
|
using Framework.Manager;
|
|
|
|
using Framework.Constants;
|
|
|
|
using Gameplay.LoadingExecutor;
|
|
|
|
|
|
|
|
namespace Gameplay
|
|
|
|
{
|
|
|
|
public class MyGame : PhxhSDK.Game
|
|
|
|
{
|
|
|
|
protected override void _RegisterSubSystems()
|
|
|
|
{
|
|
|
|
_Register<StorageManager>();
|
|
|
|
SDKManager.Instance.AfterLoginInit();
|
|
|
|
|
|
|
|
_Register<BIManager>();
|
|
|
|
_Register<UIManager>();
|
|
|
|
_Register<AudioManager>();
|
|
|
|
_Register<LevelManager>();
|
|
|
|
_Register<LoginManager>();
|
|
|
|
_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>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|