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

15 lines
322 B
C#
Raw Normal View History

2026-01-07 21:27:42 +00:00
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();
}
}