2025-09-08 14:51:28 +08:00
|
|
|
|
using ZXKFramework;
|
|
|
|
|
|
using GDLog;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
using System.Collections;
|
|
|
|
|
|
|
2025-09-08 17:37:12 +08:00
|
|
|
|
namespace DongWuYiXue.Main
|
2025-09-08 14:51:28 +08:00
|
|
|
|
{
|
|
|
|
|
|
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>();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|