using System.Collections.Generic;
|
using UnityEngine;
|
|
public class HeroDebutCallRateCell : CellView
|
{
|
[SerializeField] HeroDebutCallRateItem[] items;
|
HeroDebutManager manager => HeroDebutManager.Instance;
|
|
public void Display(int rowIndex, Dictionary<int, int> gridRateDict, List<int> 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);
|
}
|
}
|
}
|
|
}
|