using ZXKFramework; using GDLog; using UnityEngine; using System.Collections; namespace DongWuYiXue.Main { public class GameManager : MonoSingleton { [HideInInspector] public PlayerManager playerManager; protected override void Awake() { base.Awake(); LogConfig config = new LogConfig { enableSave = false, loggerType = LoggerType.Unity, }; GLog.InitSettings(config); playerManager = transform.FindFirst("PlayerManager"); } private IEnumerator Start() { //平台适配初始化 Game.Instance.AdapterInit(); //数据初始化 MVC.RegisterModel(new GameModel()); yield return MVC.GetModel().Init(); //进入 Game.Instance.fsm.ChangeState(); } } }