This commit is contained in:
aube.lee
2025-03-04 00:03:31 +09:00
2 changed files with 35 additions and 1 deletions

View File

@@ -6,6 +6,10 @@ namespace TON
{
public class ShopUI : UIBase
{
// // 보유 포션 수량
// [SerializeField] private TextMeshProUGUI hpPotionCount;
// [SerializeField] private TextMeshProUGUI mpPotionCount;
// Start is called before the first frame update
void Start()
{
@@ -17,5 +21,23 @@ namespace TON
{
}
private void OnEnable()
{
SetUserItemData();
}
private void SetUserItemData()
{
UserItemData userItem = PlayerDataManager.Singleton.userItem;
// hpPotionCount.text = $"{userItem.hpPotion}";
// mpPotionCount.text = $"{userItem.mpPotion}";
}
public void OnClickLobbyButton()
{
Main.Singleton.ChangeScene(SceneType.Lobby);
}
}
}