using System.Linq; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using Cysharp.Threading.Tasks; using UVC.Command; using UVC.UI.Modal; using EnglewoodLAB.Modal.View; using EnglewoodLAB.UI.Controller; using TMPro; namespace EnglewoodLAB.Modal { public class ContentModalView : ModalView { private ScrollRect rectScroll; private RectTransform contentRect; private GameObject contentSelectprefab; private ContentButtonController controller; public override async UniTask OnOpen(ModalContent content) { if (contentSelectprefab == null) { contentSelectprefab = Resources.Load("UI/Prefab/Button/ContentSelectButton"); } SetUI(); await base.OnOpen(content); } public void Show() { gameObject.SetActive(true); //Ç×»ó ù ÆäÀÌÁö°¡ º¸¿©¾ßÇÔ } private void SetUI() { var textmeshpros = GetComponentsInChildren(); var rectItems = GetComponentsInChildren(); var btns = GetComponentsInChildren