hch
6 小时以前 2ebcf3631690f5bd4eb93a1bb2d7b354c4c7c5fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using UnityEngine;
public class HeroSkinRoleLineCell : CellView
{
    [SerializeField] HeroSkinRoleCell[] skinRoleCells;
 
    //index 为 临时列表的索引
    public void Display(HeroConfig heroConfig, int index)
    {
        for (int i = 0; i < skinRoleCells.Length; i++)
        {
            if (index + i < HeroSkinChooseWin.activeIndexList.Count)
            {
                skinRoleCells[i].SetActive(true);
                skinRoleCells[i].Display(heroConfig, HeroSkinChooseWin.activeIndexList[index + i]);
            }
            else
            {
                skinRoleCells[i].SetActive(false);
            }
 
        }
    }
}