상점에서 로비로 돌아가는 기능 추가

This commit is contained in:
Mingu Kim
2025-03-03 18:31:52 +09:00
parent 24190af6fb
commit 934e1d4488
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);
}
}
}