| | |
| | | using UnityEngine;
|
| | | using Cysharp.Threading;
|
| | | using Cysharp.Threading.Tasks;
|
| | | using System.Threading.Tasks;
|
| | |
|
| | | /// <summary>
|
| | | /// Main类,作为热更新程序集的入口点
|
| | |
| | | StageManager.Instance.ToLoginScene();
|
| | | }
|
| | |
|
| | | public static void OnEnterGameScene()
|
| | | public static async UniTask InitManagers()
|
| | | {
|
| | | // 初始化游戏场景
|
| | | Debug.Log("初始化游戏场景");
|
| | |
|
| | | ReleaseMgrs();
|
| | |
|
| | | // 初始化游戏系统
|
| | |
| | | manager.Init();
|
| | | }
|
| | |
|
| | | await UniTask.Yield();
|
| | | }
|
| | |
|
| | | public static void OnEnterGameScene()
|
| | | {
|
| | | // 初始化游戏场景
|
| | | Debug.Log("初始化游戏场景");
|
| | |
|
| | | foreach (var manager in managers)
|
| | | {
|
| | | manager.RequestNessaryData();
|