상점에서 로비로 돌아가는 기능 추가
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user