From 2917e8a4eae31c1a1bc4419a9b6f23be7e4fda3e Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 05 八月 2025 19:24:50 +0800
Subject: [PATCH] update team heros

---
 Main/System/Battle/BattleObject/BattleObjectFactory.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Main/System/Battle/BattleObject/BattleObjectFactory.cs b/Main/System/Battle/BattleObject/BattleObjectFactory.cs
index 000fba5..65a1275 100644
--- a/Main/System/Battle/BattleObject/BattleObjectFactory.cs
+++ b/Main/System/Battle/BattleObject/BattleObjectFactory.cs
@@ -13,7 +13,7 @@
     {
         HeroSkinConfig skinCfg = teamHero.skinConfig;
         GameObject battleGO = ResManager.Instance.LoadAsset<GameObject>("Hero/SpineRes", "Hero_001"/*skinCfg.SpineRes*/);
-        SkeletonGraphic skeletonGraphic = battleGO.GetComponent<SkeletonGraphic>();
+        SkeletonGraphic skeletonGraphic = battleGO.GetComponentInChildren<SkeletonGraphic>();
         skeletonGraphic.skeletonDataAsset = ResManager.Instance.LoadAsset<SkeletonDataAsset>("Hero/SpineRes/", skinCfg.SpineRes);
         skeletonGraphic.Initialize(true);
         GameObject goParent = posNodeList[teamHero.positionNum];

--
Gitblit v1.8.0