using System;
|
using System.Linq;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
|
public class GubaoListCell : CellView
|
{
|
[SerializeField] GubaoCell[] gubaoCells;
|
|
|
public void Display(int index)
|
{
|
var quality = index / 100000;
|
var startIndex = index % 100000;
|
var allCnt = GubaoManager.Instance.gubaoCollectDict[quality].Count;
|
for (int i = 0; i < gubaoCells.Length; i++)
|
{
|
if (startIndex + i < allCnt)
|
{
|
gubaoCells[i].SetActive(true);
|
gubaoCells[i].Display(quality, startIndex + i);
|
}
|
else
|
{
|
gubaoCells[i].SetActive(false);
|
}
|
}
|
}
|
|
|
}
|