From 1ec983f61def3ad0ee85da87b197259c054644dd Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 25 八月 2025 18:55:44 +0800
Subject: [PATCH] 125 战斗 技能bug修复

---
 Main/System/Hero/UIHeroController.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Main/System/Hero/UIHeroController.cs b/Main/System/Hero/UIHeroController.cs
index 088d5c1..ac94bf1 100644
--- a/Main/System/Hero/UIHeroController.cs
+++ b/Main/System/Hero/UIHeroController.cs
@@ -53,7 +53,12 @@
 		}
 		if (skeletonGraphic.skeletonDataAsset == null)
 		{
-			this.SetActive(false);
+
+			transform.SetActive(false);
+			if (pool != null)
+				pool.Release(instanceGO);
+			skeletonGraphic = null;
+			Destroy(instanceGO);
 			Debug.LogError("鏈厤缃畇pine");
 			return;
 		}

--
Gitblit v1.8.0