27 lines
719 B
C#
27 lines
719 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
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);
|
||
|
|
texts[1].text = v.ToString();
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
i_icon.sprite = UIAtlasMgr.Ins.Get_StatSprite(stat);
|
||
|
|
texts[0].text = MyText.Get_StatName(stat);
|
||
|
|
texts[1].text = v.ToString();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|