From dbb4ea01211573e782666e45eb859c96859b2cd6 Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期五, 29 八月 2025 15:59:32 +0800 Subject: [PATCH] 125 【战斗】战斗系统 ui上的一点修正 --- Main/System/Battle/UIComp/BasicHeroInfoContainer.cs | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Main/System/Battle/UIComp/BasicHeroInfoContainer.cs b/Main/System/Battle/UIComp/BasicHeroInfoContainer.cs index 0ee0b41..8f7c1eb 100644 --- a/Main/System/Battle/UIComp/BasicHeroInfoContainer.cs +++ b/Main/System/Battle/UIComp/BasicHeroInfoContainer.cs @@ -1,9 +1,15 @@ using UnityEngine; +using UnityEngine.UI; public class BasicHeroInfoContainer : MonoBehaviour { + public Text txtLvName; + + public Image countryIcon; + public void SetHeroInfo(TeamHero teamHero) { - + txtLvName.text = string.Format("Lv.{0} {1}", teamHero.level, teamHero.name); + countryIcon.SetSprite(HeroUIManager.Instance.GetCountryIconName((int)teamHero.Country)); } } \ No newline at end of file -- Gitblit v1.8.0