22 lines
545 B
C#
22 lines
545 B
C#
using TMPro;
|
|
using UnityEngine.UI;
|
|
|
|
public class MoneyCard : CardBase
|
|
{
|
|
public Image i_money;
|
|
public TextMeshProUGUI t_money;
|
|
|
|
public override void Set<T>(T _base)
|
|
{
|
|
base.Set(_base);
|
|
var id = int.Parse(_base.ToString());
|
|
i_money.sprite = UIAtlasMgr.Ins.Get_Sprite(id);
|
|
t_money.text = MyValue.sdata.Get_ItemAmount(id).ToString();
|
|
}
|
|
|
|
public void Set_NeedMoney(int id, int amount)
|
|
{
|
|
i_money.sprite = UIAtlasMgr.Ins.Get_Sprite(id);
|
|
t_money.text = amount.ToString();
|
|
}
|
|
} |