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
29
30
using UnityEngine;
 
public class HeroDebutShopLineCell : CellView
{
    [SerializeField] HeroDebutShopCell[] storeCells;
    HeroDebutManager manager => HeroDebutManager.Instance;
    public void Display(int index)
    {
        var act = manager.GetOperationHeroAppearInfo();
        if (act == null) return;
 
        var config = ActHeroAppearConfig.Get(act.CfgID);
        if (config == null) return;
 
        if (!StoreModel.Instance.storeTypeDict.TryGetValue(config.ExShopType, 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);
            }
        }
    }
}