44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
|
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()
|
||
|
{
|
||
|
GameStateManager.Instance.ChangeState(new GameStateStart(UIConstants.UIMainPanel));
|
||
|
}
|
||
|
|
||
|
private void _Register<T>() where T : class, new()
|
||
|
{
|
||
|
_subSystemManager.AddSubSystem<T>();
|
||
|
}
|
||
|
}
|
||
|
}
|