Files
M-Gameton-06/Gameton-06/Assets/Gameton/Scripts/UI/ShopUI.cs
2025-06-08 23:07:23 +09:00

34 lines
751 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace TON
{
// MVP 패턴 : Model <> Presenter <> View
// View
public class ShopUI : UIBase
{
[SerializeField] private GameObject HeartPopUp;
[SerializeField] private GameObject PositionPopUp;
[SerializeField] private List<ShopItemUI> ShopItems;
private ShopPresenter _presenter;
private void Start()
{
_presenter = new ShopPresenter();
for (int i = 0; i < ShopItems.Count; i++)
{
ShopItems[i].Bind(_presenter.ShopItems[i]);
}
}
public void OnClickLobbyButton()
{
Main.Singleton.ChangeScene(SceneType.Lobby);
}
}
}