OneShotOneKill/Assets/Script/UGUI/Common/LvUpNeedMoney.cs

15 lines
322 B
C#

using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class LvUpNeedMoney : MonoBehaviour
{
public Image i_money;
public TextMeshProUGUI t_money;
public void Set(int id, int needAmount)
{
i_money.sprite = UIAtlasMgr.Ins.Get_Sprite(id);
t_money.text = needAmount.ToString();
}
}