using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
|
public class RechargeGoldLineCell : CellView
|
{
|
|
[SerializeField] RechargeGoldCell[] cells;
|
|
public void Display(int index, List<int> _list)
|
{
|
|
for (int i = 0; i < cells.Length; i++)
|
{
|
if (index + i < _list.Count)
|
{
|
cells[i].SetActive(true);
|
cells[i].Display(_list[index + i]);
|
}
|
else
|
{
|
cells[i].SetActive(false);
|
}
|
}
|
}
|
}
|