yyl
2025-07-18 cc074976c8644508d80abafbfa8de5d31146abdf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using UnityEngine;
using System.Collections.Generic;
 
public class HeroCardLineCell : CellView
{
    [SerializeField] List<HeroCardCell> cardList;
 
    public void Display(int index)
    { 
        for (int i = 0; i < cardList.Count; i++)
        {
            if (i + index < HeroManager.Instance.heroSortList.Count)
            {
                cardList[i].SetActive(true);
                cardList[i].Display(index + i);
            }
            else
            {
                cardList[i].SetActive(false);
            }
        }
    }
}