You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using UnityEngine;
|
|
|
|
namespace Game
|
|
{
|
|
public class GameManager : ManagerBase<GameManager>
|
|
{
|
|
public GameManager()
|
|
{
|
|
}
|
|
public override void OnCreate()
|
|
{
|
|
ConfigInit();
|
|
GameSetting.Load();
|
|
|
|
EventManager.Create();
|
|
CameraManager.Create();
|
|
DramaManager.Create();
|
|
UIManager.Create();
|
|
|
|
StageManager.Create();//场景mgr最后初始化
|
|
StageManager.Instance.ChangeStage(EStage.Arena);
|
|
|
|
}
|
|
public override void Update()
|
|
{
|
|
StageManager.Instance.Update();
|
|
UIManager.Instance.Update();
|
|
CameraManager.Instance.Update();
|
|
}
|
|
public override void FixedUpdate()
|
|
{
|
|
StageManager.Instance.FixedUpdate();
|
|
UIManager.Instance.FixedUpdate();
|
|
CameraManager.Instance.FixedUpdate();
|
|
}
|
|
public override void LateUpdate()
|
|
{
|
|
StageManager.Instance.LateUpdate();
|
|
}
|
|
public override void OnDestroy()
|
|
{
|
|
}
|
|
private void ConfigInit()
|
|
{
|
|
Application.targetFrameRate = GameConst.FPS;
|
|
Input.imeCompositionMode = IMECompositionMode.Off;
|
|
}
|
|
}
|
|
} |