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);
|
}
|
|
}
|
}
|
}
|