빌드 셋팅 변경값, 상점 UI 하트 팝업, 이미지 명, 로딩 UI 애니메이션
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user