This commit is contained in:
陈思海 2025-02-14 19:25:15 +08:00
parent e7f5d778e1
commit 59afc69a1c

View File

@ -1,4 +1,6 @@
using UnityEngine; using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace AlicizaX.Runtime namespace AlicizaX.Runtime
{ {
@ -29,8 +31,9 @@ namespace AlicizaX.Runtime
SysModuleCenter.UpdateGUIExecuteList(); SysModuleCenter.UpdateGUIExecuteList();
} }
private void OnDestroy() private async void OnDestroy()
{ {
await UniTask.Yield();
SysModuleCenter.Dispose(); SysModuleCenter.Dispose();
} }
} }