using UnityEngine; using UnityEngine.UI; public class HorseSkinLineCell : CellView { [SerializeField] HorseSkinCell[] horseSkinCells; public void Display(int _index) { for (int i = 0; i < horseSkinCells.Length; i++) { int index = _index + i; if (index < HorseManager.Instance.sortSkinList.Count) { horseSkinCells[i].SetActive(true); horseSkinCells[i].Display(HorseManager.Instance.sortSkinList[index]); } else { horseSkinCells[i].SetActive(false); } } } }