빌드 셋팅 변경값, 상점 UI 하트 팝업, 이미지 명, 로딩 UI 애니메이션

This commit is contained in:
Mingu Kim
2025-03-05 21:59:38 +09:00
parent 4879e2ca88
commit aa5a9eeca6
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);
}
}
}