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 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); } } }