using System.Collections.Generic;
|
using UnityEngine;
|
|
|
public class BattleBuffLineCell : CellView
|
{
|
[SerializeField] BattleBuffCell[] buffCellList;
|
|
public void Display(List<HB428_tagSCBuffRefresh> buffList, int index)
|
{
|
for (int i = 0; i < buffCellList.Length; i++)
|
{
|
if (i + index < buffList.Count)
|
{
|
buffCellList[i].SetActive(true);
|
buffCellList[i].Display(buffList[i + index]);
|
}
|
else
|
{
|
buffCellList[i].SetActive(false);
|
}
|
}
|
}
|
}
|