lcy
2026-06-10 82e8a3f6ff7aaec06d1b60463a545a8bb031f546
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
34
35
36
37
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
 
 
public class SkinStoreLineCell : CellView
{
 
    [SerializeField] SkinStoreCell[] storeCells;
 
    public void Display(int index)
    {
        var list = StoreModel.Instance.GetTimeValidHeroSkinStoreDatas();
        if (list == null)
        {
            for (int i = 0; i < storeCells.Length; i++)
            {
                storeCells[i].SetActive(false);
            }
 
            return;
        }
 
        for (int i = 0; i < storeCells.Length; i++)
        {
            if (index + i < list.Count)
            {
                storeCells[i].SetActive(true);
                storeCells[i].Display(index + i);
            }
            else
            {
                storeCells[i].SetActive(false);
            }
        }
    }
}