using System.Collections.Generic; using LitJson; using UnityEngine; public class BoxItemLineCell : CellView { [SerializeField] BoxItemCell[] itemList; public void Display(List list) { for (int i = 0; i < itemList.Length; i++) { if (i < list.Count) { itemList[i].SetActive(true); itemList[i].Display(list[i]); } else { itemList[i].SetActive(false); } } } }