using System.Collections.Generic; using UnityEngine; public class HeroDebutCallRateCell : CellView { [SerializeField] HeroDebutCallRateItem[] items; HeroDebutManager manager => HeroDebutManager.Instance; public void Display(int rowIndex, Dictionary gridRateDict, List gridList, XBGetItemConfig xbConfig) { if (gridList == null) return; for (int i = 0; i < items.Length; i++) { int index = rowIndex * HeroDebutCallChangeWin.rowCountMax + i; if (index < gridList.Count) { items[i].SetActive(true); items[i].Display(index, gridRateDict, gridList, xbConfig); } else { items[i].SetActive(false); } } } }