22 lines
489 B
C#
22 lines
489 B
C#
using TMPro;
|
|
|
|
public class CollectionStatUpCard : CardBase
|
|
{
|
|
public TextMeshProUGUI[] texts; // 0 스탯명, 1 스탯량
|
|
|
|
int m_StatVal = 0;
|
|
|
|
public override void Set<T>(T _base)
|
|
{
|
|
base.Set(_base);
|
|
texts[0].text = MyText.Get_eAwakenUpgradeOptionTypeName(_base.ToString());
|
|
m_StatVal = 0;
|
|
texts[1].text = "0";
|
|
}
|
|
|
|
public override void Set(int _val)
|
|
{
|
|
m_StatVal += _val;
|
|
texts[1].text = m_StatVal.ToString();
|
|
}
|
|
} |