From d446816c95becec6f672ae0758101dbe925cb1fa Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 22 八月 2025 12:25:16 +0800
Subject: [PATCH] 155 子 【武将】招募系统 未配置spine报错防范
---
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