hch
9 小时以前 6e55b6042adcab2ae50a2c8f23baf8dbfd6ff2b9
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 RechargeGoldLineCell : CellView
{
 
    [SerializeField] RechargeGoldCell[] 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);
            }
        }
    }
}