hch
昨天 f88d20f956b355588cf987a6534c39e016b1d8e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
            }
        }
    }
 
 
}