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 Gameplay.LoadingExecutor;
|
|
|
|
namespace Gameplay
|
|
{
|
|
public class Forest_MyGame : PhxhSDK.Game
|
|
{
|
|
protected override void _RegisterSubSystems()
|
|
{
|
|
_Register<StorageManager>();
|
|
SDKManager.Instance.AfterLoginInit();
|
|
|
|
_Register<BIManager>();
|
|
_Register<UIManager>();
|
|
_Register<AudioManager>();
|
|
_Register<LevelManager>();
|
|
_Register<LoginManager>();
|
|
_Register<GuideMananger>();
|
|
_Register<CameraManager>();
|
|
_Register<AppInfoManager>();
|
|
_Register<GameStateManager>();
|
|
_Register<LevelSelectManager>();
|
|
_Register<LoadingExecutorManager>();
|
|
|
|
SDKManager.Instance.Init();
|
|
}
|
|
|
|
protected override void _OnAllSystemStarted()
|
|
{
|
|
GameStateManager.Instance.ChangeState(new GameStateStart());
|
|
}
|
|
|
|
private void _Register<T>() where T : class, new()
|
|
{
|
|
_subSystemManager.AddSubSystem<T>();
|
|
}
|
|
}
|
|
} |