yyl
2026-05-11 51b0f6ed9f4e1d3bb6f8144470b46908c7699a96
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
using System.Collections.Generic;
using Cysharp.Threading.Tasks;
using UnityEngine;
 
public class HeroGiftLineCell : CellView
{
    [SerializeField] GiftBaseCell[] cardList;
 
    public void Display(int index, List<int> configList)
    {
        for (int i = 0; i < cardList.Length; i++)
        {
            if (index + i < configList.Count)
            {
                var giftID = configList[index + i];
                var giftLV = HeroUIManager.Instance.maxGiftLevel;
                cardList[i].SetActive(true);
                cardList[i].Init(giftID, giftLV).Forget();
            }
            else
            {
                cardList[i].SetActive(false);
            }
        }
    }
}