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
27
28
using UnityEngine;
 
public class FestivalActivityShopLineCell : CellView
{
    [SerializeField] FestivalActivityShopCell[] storeCells;
    FestivalActivityMissionManager manager => FestivalActivityMissionManager.Instance;
    public void Display(int index)
    {
        ActTaskConfig config = manager.GetCurrentConfig();
        if (config == null)
            return;
        if (!StoreModel.Instance.storeTypeDict.TryGetValue(config.ActShopTypeEx, out var list))
            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);
            }
        }
    }
}