diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/GameApp.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/GameApp.cs index 70f2749b..f6877d2f 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/GameApp.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/GameApp.cs @@ -22,7 +22,7 @@ public partial class GameApp _hotfixAssembly = (List)objects[0]; Log.Warning("======= 看到此条日志代表你成功运行了热更新代码 ======="); Log.Warning("======= Entrance GameApp ======="); - ModuleSystem.GetModule().AddDestroyListener(Release); + Utility.Unity.AddDestroyListener(Release); StartGameLogic(); } diff --git a/UnityProject/Assets/GameScripts/Procedure/ProcedureInitResources.cs b/UnityProject/Assets/GameScripts/Procedure/ProcedureInitResources.cs index 655e47df..6bcc8269 100644 --- a/UnityProject/Assets/GameScripts/Procedure/ProcedureInitResources.cs +++ b/UnityProject/Assets/GameScripts/Procedure/ProcedureInitResources.cs @@ -23,7 +23,7 @@ namespace Procedure LauncherMgr.Show(UIDefine.UILoadUpdate, "初始化资源中..."); // 注意:使用单机模式并初始化资源前,需要先构建 AssetBundle 并复制到 StreamingAssets 中,否则会产生 HTTP 404 错误 - ModuleSystem.GetModule().StartCoroutine(InitResources(procedureOwner)); + Utility.Unity.StartCoroutine(InitResources(procedureOwner)); } protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds) @@ -88,7 +88,7 @@ namespace Procedure LoadStyle.StyleEnum.Style_Retry , () => { - ModuleSystem.GetModule().StartCoroutine(InitResources(procedureOwner)); + Utility.Unity.StartCoroutine(InitResources(procedureOwner)); }, UnityEngine.Application.Quit); } }