From 3f2cd27c5dfb3b450245bf1a37fc1b3414031c7c Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 11 二月 2026 11:03:58 +0800
Subject: [PATCH] 小游戏适配 资源系统改造

---
 Main/System/Guild/GuildBossWin.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Main/System/Guild/GuildBossWin.cs b/Main/System/Guild/GuildBossWin.cs
index 5b8e74f..079429a 100644
--- a/Main/System/Guild/GuildBossWin.cs
+++ b/Main/System/Guild/GuildBossWin.cs
@@ -413,10 +413,13 @@
         atkBtn.SetColorful(null, false);
         atkCDText.text = "3";
         await UniTask.Delay(1000);
+        if (this == null) return; // destroyed during await
         atkCDText.text = "2";
         await UniTask.Delay(1000);
+        if (this == null) return; // destroyed during await
         atkCDText.text = "1";
         await UniTask.Delay(1000);
+        if (this == null) return; // destroyed during await
         atkBtn.SetColorful(null, true);
 
         isCD = false;
@@ -485,6 +488,7 @@
                 };
                 hurtValues[i].text = BattleUtility.DisplayDamageNum(dmg);
                 await UniTask.Delay(atkValueShowCD);
+                if (this == null) return; // destroyed during await
             }
             else
             {

--
Gitblit v1.8.0