From 249c2184d4e72f2f8a40ac9a156bf54849d0e191 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 14 九月 2025 22:42:22 +0800
Subject: [PATCH] 0312 调整目录支持launch

---
 Main/System/Hero/UIHeroController.cs |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/Main/System/Hero/UIHeroController.cs b/Main/System/Hero/UIHeroController.cs
index 088d5c1..fb01aa1 100644
--- a/Main/System/Hero/UIHeroController.cs
+++ b/Main/System/Hero/UIHeroController.cs
@@ -53,12 +53,37 @@
 		}
 		if (skeletonGraphic.skeletonDataAsset == null)
 		{
-			this.SetActive(false);
+
+			transform.SetActive(false);
+			if (pool != null)
+				pool.Release(instanceGO);
+			skeletonGraphic = null;
+			Destroy(instanceGO);
 			Debug.LogError("鏈厤缃畇pine");
 			return;
 		}
 		skeletonGraphic.Initialize(true);
-		this.transform.localScale = Vector3.one * scale;
+		if (isLh)
+		{
+			//X杞村亸绉伙紝Y杞村亸绉伙紝缂╂斁锛屾槸鍚︽按骞崇炕杞紙0鍚�1鏄級
+			if (skinConfig.TachieParam.Length == 4)
+			{
+				this.transform.localPosition = new Vector3(skinConfig.TachieParam[0], skinConfig.TachieParam[1], 0);
+				this.transform.localScale = Vector3.one * skinConfig.TachieParam[2];
+				this.transform.localRotation = Quaternion.Euler(0, skinConfig.TachieParam[3] == 0 ? 0 : 180, 0);
+			}
+			else
+			{
+				this.transform.localPosition = Vector3.zero;
+				this.transform.localScale = Vector3.one;
+				this.transform.localRotation = Quaternion.identity;
+			}
+
+		}
+		else
+		{
+			this.transform.localScale = Vector3.one * scale;
+		}
 		spineAnimationState = skeletonGraphic.AnimationState;
 		spineAnimationState.Data.DefaultMix = 0f;
 		if (motionName == "")

--
Gitblit v1.8.0