hch
2026-03-24 b19ee2ea2b1a6cb0b1d1c1e18b83b58aee8ff824
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
    }
}