1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);
            }
        }
    }
 
}