This commit is contained in:
aube.lee
2025-03-05 22:18:11 +09:00
13 changed files with 61167 additions and 20 deletions

View File

@@ -1,11 +1,15 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
namespace TON
{
public class ShopUI : UIBase
{
[SerializeField] private GameObject HeartPopUp;
// // 보유 포션 수량
// [SerializeField] private TextMeshProUGUI hpPotionCount;
// [SerializeField] private TextMeshProUGUI mpPotionCount;
@@ -13,31 +17,34 @@ namespace TON
// Start is called before the first frame update
void Start()
{
InitPopUpActive();
}
public void InitPopUpActive()
{
HeartPopUp.SetActive(false);
}
// Update is called once per frame
void Update()
{
}
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);
}
public void OnClickHeartPopUpButton()
{
HeartPopUp.SetActive(true);
}
public void OnClickHeartCloseButton()
{
HeartPopUp.SetActive(false);
}
}
}