hch
2 天以前 38c69309b122bbbc4077fb275cd63f916106e996
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
33
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
 
 
public class HeroCallHopeLineCell : CellView
{
    [SerializeField] HeroCallHopeSelectCell[] heads;
 
 
 
    public void Display(int libID, int index)
    {
        var list = TreasureItemLibConfig.GetWishIDList(libID);
        if (list == null || list.Count == 0)
        {
            return;
        }
        for (int i = 0; i < heads.Length; i++)
        {
            if (index + i < list.Count)
            {
                heads[i].SetActive(true);
                heads[i].Display(list[index + i]);
            }
            else
            {
                heads[i].SetActive(false);
            }
        }
    }
 
}