lcy
6 天以前 cffbf22341ba8fc5a60a37fe20a2b39ec3d8d7a3
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
29
30
31
32
33
using UnityEngine;
 
public class HeroReturnCallChangeCell : CellView
{
    [SerializeField] HeroReturnCallChangeItem[] items;
    HeroReturnManager manager => HeroReturnManager.Instance;
    public void Display(int rowIndex)
    {
        var act = manager.GetOperationHeroAppearInfo();
        if (act == null) return;
 
        var config = ActHeroAppearConfig.Get(act.CfgID);
        if (config == null) return;
 
        var heroArr = config.ActHeroIDList;
        if (heroArr.IsNullOrEmpty()) return;
 
        for (int i = 0; i < items.Length; i++)
        {
            int index = rowIndex * HeroReturnCallChangeWin.rowCountMax + i;
            if (index < heroArr.Length)
            {
                items[i].SetActive(true);
                items[i].Display(index, heroArr, act.CfgID);
            }
            else
            {
                items[i].SetActive(false);
            }
        }
    }
 
}