using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
//公会徽章列表
|
public class GuildEmblemListCell : CellView
|
{
|
[SerializeField] List<GuildEmblemSelectCell> cells;
|
|
public void Display(int index)
|
{
|
for (int i = 0; i < cells.Count; i++)
|
{
|
if (i + index < GuildEmblemModel.Instance.showList.Count)
|
{
|
cells[i].SetActive(true);
|
cells[i].Display(index + i);
|
}
|
else
|
{
|
cells[i].SetActive(false);
|
}
|
}
|
}
|
|
}
|