using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SkinStoreLineCell : CellView { [SerializeField] SkinStoreCell[] storeCells; public void Display(int index) { var list = StoreModel.Instance.storeTypeDict[StoreModel.skinStoreType]; for (int i = 0; i < storeCells.Length; i++) { if (index + i < list.Count) { storeCells[i].SetActive(true); storeCells[i].Display(index + i); } else { storeCells[i].SetActive(false); } } } }