yyl
2025-10-21 3bd7f56906e31e8fe0072108c9d4652707b51de8
Main/System/Battle/UIComp/BasicHeroInfoContainer.cs
@@ -1,9 +1,18 @@
using UnityEngine;
using UnityEngine.UI;
public class BasicHeroInfoContainer : MonoBehaviour
{
    public Text txtLvName;
    public Image countryIcon;
    public Text txtLv;
    public void SetHeroInfo(TeamHero teamHero)
    {
        txtLvName.text = teamHero.name; //string.Format("{0}", teamHero.level, teamHero.name);
        countryIcon.SetSprite(HeroUIManager.Instance.GetCountryIconName((int)teamHero.Country));
        txtLv.text = string.Format("[{0}]", teamHero.level);
    }
}