yyl
11 小时以前 9705833cb610ea2a5147fafa8a2279020f98ed48
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
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
 
 
public class RechargeDJQLineCell : CellView
{
 
    [SerializeField] RechargeDJQCell[] 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);
            }
        }
    }
}