From 59afc69a1ce2a6b0bc4b5680334c36b1d8458655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <10001@qq.com> Date: Fri, 14 Feb 2025 19:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Base/Module/GameModuleMonoProxy.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Runtime/Base/Module/GameModuleMonoProxy.cs b/Runtime/Base/Module/GameModuleMonoProxy.cs index 2dfa5b3..12c863a 100644 --- a/Runtime/Base/Module/GameModuleMonoProxy.cs +++ b/Runtime/Base/Module/GameModuleMonoProxy.cs @@ -1,4 +1,6 @@ -using UnityEngine; +using System.Threading.Tasks; +using Cysharp.Threading.Tasks; +using UnityEngine; namespace AlicizaX.Runtime { @@ -29,9 +31,10 @@ namespace AlicizaX.Runtime SysModuleCenter.UpdateGUIExecuteList(); } - private void OnDestroy() + private async void OnDestroy() { + await UniTask.Yield(); SysModuleCenter.Dispose(); } } -} \ No newline at end of file +}