35 lines
949 B
C#
Raw Normal View History

2025-09-08 14:51:28 +08:00
using ZXKFramework;
using GDLog;
using UnityEngine;
using System.Collections;
namespace YiLiao.Main
{
public class GameManager : MonoSingleton<GameManager>
{
[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>("PlayerManager");
}
private IEnumerator Start()
{
//ƽ̨<C6BD><CCA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>
Game.Instance.AdapterInit();
//<2F><><EFBFBD>ݳ<EFBFBD>ʼ<EFBFBD><CABC>
MVC.RegisterModel(new GameModel());
yield return MVC.GetModel<GameModel>().Init();
//<2F><><EFBFBD><EFBFBD>
Game.Instance.fsm.ChangeState<GamePatternState>();
}
}
}