From 3f2cd27c5dfb3b450245bf1a37fc1b3414031c7c Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 11 二月 2026 11:03:58 +0800
Subject: [PATCH] 小游戏适配 资源系统改造
---
Main/System/Equip/EquipExchangeCell.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Main/System/Equip/EquipExchangeCell.cs b/Main/System/Equip/EquipExchangeCell.cs
index bdbe329..9c7d65e 100644
--- a/Main/System/Equip/EquipExchangeCell.cs
+++ b/Main/System/Equip/EquipExchangeCell.cs
@@ -175,6 +175,7 @@
async UniTask RefreshEffect(ItemModel equip)
{
await UniTask.DelayFrame(1);
+ if (this == null) return; // destroyed during await
int effectID = EquipModel.Instance.equipUIEffects[Math.Min(equip.config.ItemColor, EquipModel.Instance.equipUIEffects.Length) - 1];
if (effectID == 0)
{
@@ -191,6 +192,7 @@
//浜屾澶勭悊鏀惧ぇ鏁堟灉
await UniTask.Delay(100);
+ if (this == null) return; // destroyed during await
if (effectID == 0)
{
uieffect.Stop();
--
Gitblit v1.8.0