24 lines
621 B
C#
24 lines
621 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class PetPureStatCard : MonoBehaviour
|
|
{
|
|
public Image i_icon;
|
|
public TextMeshProUGUI[] texts; // 0 스탯명, 1 스탯값
|
|
|
|
public void Set(bool isLv, eStat stat, int v)
|
|
{
|
|
if (isLv)
|
|
{
|
|
//i_icon.sprite = UIAtlasMgr.Ins.Get_Sprite("icon_lv");
|
|
texts[0].text = table_localtext.Ins.Get_Text(267);
|
|
}
|
|
else
|
|
{
|
|
//i_icon.sprite = UIAtlasMgr.Ins.Get_StatSprite(stat);
|
|
texts[0].text = MyText.Get_StatName(stat);
|
|
}
|
|
texts[1].text = v.ToString();
|
|
}
|
|
} |