32 lines
798 B
C#
32 lines
798 B
C#
using ZXKFramework;
|
|
using GDLog;
|
|
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
namespace YiLiao.Main
|
|
{
|
|
public class GameManager : MonoSingleton<GameManager>
|
|
{
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
LogConfig config = new LogConfig
|
|
{
|
|
enableSave = false,
|
|
loggerType = LoggerType.Unity,
|
|
};
|
|
GLog.InitSettings(config);
|
|
}
|
|
|
|
private IEnumerator Start()
|
|
{
|
|
//平台适配初始化
|
|
Game.Instance.AdapterInit();
|
|
//数据初始化
|
|
MVC.RegisterModel(new GameModel());
|
|
yield return MVC.GetModel<GameModel>().Init();
|
|
//进入
|
|
Game.Instance.fsm.ChangeState<GameProjectState>();
|
|
}
|
|
}
|
|
} |