From 7ad2305fbed71ea4c08cbf93850019497b6d3ac0 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 26 十一月 2025 15:04:26 +0800
Subject: [PATCH] 0312 武将列表界面和布阵界面组件名增加武将ID
---
Main/System/HeroUI/HeroCardCell.cs | 1 +
Main/System/HeroUI/HeroPosHeadCell.cs | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Main/System/HeroUI/HeroCardCell.cs b/Main/System/HeroUI/HeroCardCell.cs
index 0f5d634..cd524b9 100644
--- a/Main/System/HeroUI/HeroCardCell.cs
+++ b/Main/System/HeroUI/HeroCardCell.cs
@@ -29,6 +29,7 @@
this.gameObject.SetActive(false);
return;
}
+ this.gameObject.name = $"HeroCardCell_{hero.heroId}";
this.gameObject.SetActive(true);
heroCardBG.SetSprite("herocardbg" + hero.Quality);
diff --git a/Main/System/HeroUI/HeroPosHeadCell.cs b/Main/System/HeroUI/HeroPosHeadCell.cs
index ba6249a..d70783f 100644
--- a/Main/System/HeroUI/HeroPosHeadCell.cs
+++ b/Main/System/HeroUI/HeroPosHeadCell.cs
@@ -15,6 +15,7 @@
var hero = HeroManager.Instance.GetHero(guid);
var team = TeamManager.Instance.GetTeam(HeroUIManager.Instance.selectTeamType);
selectRect.SetActive(team.GetHero(guid) != null);
+ this.gameObject.name = $"HeroPosHeadCell_{hero.heroId}";
heroHeadBaseCell.Init(hero.heroId, hero.SkinID, hero.heroStar, hero.awakeLevel, hero.heroLevel, () =>
{
--
Gitblit v1.8.0