From 3f2cd27c5dfb3b450245bf1a37fc1b3414031c7c Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 11 二月 2026 11:03:58 +0800
Subject: [PATCH] 小游戏适配 资源系统改造
---
Main/System/Gubao/GubaoCallCell.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Main/System/Gubao/GubaoCallCell.cs b/Main/System/Gubao/GubaoCallCell.cs
index 2419170..24b5950 100644
--- a/Main/System/Gubao/GubaoCallCell.cs
+++ b/Main/System/Gubao/GubaoCallCell.cs
@@ -96,14 +96,18 @@
int delay = isSkip ? 0 : index * 100; // delay 姣
await UniTask.Delay(delay);
+ if (this == null) return; // destroyed during await
rotationTween.Play();
await UniTask.Delay(300);
+ if (this == null) return; // destroyed during await
rotationTween.Stop();
openEffect.Play();
await UniTask.Delay(200);
+ if (this == null) return; // destroyed during await
canImage.SetActive(false);
await UniTask.Delay(400);
+ if (this == null) return; // destroyed during await
showEffect.effectId = GetShowEffectID(result.itemId, result.count);
showEffect.PlayByArrIndex(Math.Max(itemCfg.ItemColor - 1, 0));
itemIcon.SetActive(true);
--
Gitblit v1.8.0