using UnityEngine;
|
using System.Collections.Generic;
|
|
public class HeroCardLineCell : CellView
|
{
|
[SerializeField] List<HeroCardCell> cardList;
|
|
public void Display(int index)
|
{
|
for (int i = 0; i < cardList.Count; i++)
|
{
|
if (i + index < HeroManager.Instance.heroSortList.Count)
|
{
|
cardList[i].SetActive(true);
|
cardList[i].Display(index + i);
|
}
|
else
|
{
|
cardList[i].SetActive(false);
|
}
|
}
|
}
|
}
|