From 2e27941755e55b8a15bdde0ecaeff3efc27ec1b5 Mon Sep 17 00:00:00 2001 From: Alex-Rachel <574809918@qq.com> Date: Thu, 20 Mar 2025 11:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5GameApp=E3=80=81Procedure?= =?UTF-8?q?=E9=87=8C=E7=AE=80=E5=8C=96IUpdateDriver=E7=9A=84=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UnityProject/Assets/GameScripts/HotFix/GameLogic/GameApp.cs | 2 +- .../Assets/GameScripts/Procedure/ProcedureInitResources.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } }