From aa84cb62bebb9c8a4e586bcc1ec28eb7a16a8860 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 26 一月 2026 18:10:34 +0800
Subject: [PATCH] 422 子 【内政】命格系统 / 【内政】命格系统-客户端
---
Main/System/HeroUI/HeroPosHeadCell.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Main/System/HeroUI/HeroPosHeadCell.cs b/Main/System/HeroUI/HeroPosHeadCell.cs
index 2eb1b0a..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, () =>
{
@@ -22,7 +23,7 @@
});
nameText.text = hero.breakLevel == 0 ? hero.heroConfig.Name : Language.Get("herocardbreaklv", hero.heroConfig.Name, hero.breakLevel);
- jobImg.SetSprite("herojob" + hero.heroConfig.Class);
+ jobImg.SetSprite(HeroUIManager.Instance.GetJobIconName(hero.heroConfig.Class));
}
void Click(HeroInfo hero, int index)
@@ -41,7 +42,7 @@
return;
}
- team.AddHero(hero, out pos);
+ team.AddHero(hero, out pos, true);
if (pos != -1)
{
selectRect.SetActive(true);
--
Gitblit v1.8.0