yyl
2025-12-01 ea185afc20a915d15eae8adb07d0acd837f3c210
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
using UnityEngine;
using UnityEngine.UI;
 
public class HorseSkinLineCell : CellView
{
    [SerializeField] HorseSkinCell[] horseSkinCells;
 
    public void Display(int _index)
    {
        for (int i = 0; i < horseSkinCells.Length; i++)
        {
            int index = _index + i;
            if (index < HorseManager.Instance.sortSkinList.Count)
            {
                horseSkinCells[i].SetActive(true);
                horseSkinCells[i].Display(HorseManager.Instance.sortSkinList[index]);
            }
            else
            {
                horseSkinCells[i].SetActive(false);
            }
        }
    }
 
}