yyl
2025-08-29 21488796efae93ab7f074d7ad9bfc9d15d82a182
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Collections.Generic;
using UnityEngine;
 
 
public class BattleBuffLineCell : CellView
{
    [SerializeField] BattleBuffCell[] buffCellList;
 
    public void Display(List<HB428_tagSCBuffRefresh> buffList, int index)
    { 
        for (int i = 0; i < buffCellList.Length; i++)
        {
            if (i + index < buffList.Count)
            {
                buffCellList[i].SetActive(true);
                buffCellList[i].Display(buffList[i + index]);
            }
            else
            {
                buffCellList[i].SetActive(false);
            }
        }
    }
}