using System.Collections.Generic;
|
using UnityEngine;
|
using vnxbqy.UI;
|
|
public class CelestialPalaceTreeTailCell : CellView
|
{
|
[SerializeField] List<CelestialPalaceTreeGain> gainList = new List<CelestialPalaceTreeGain>();
|
CelestialPalaceModel model { get { return ModelCenter.Instance.GetModel<CelestialPalaceModel>(); } }
|
public void Display(int rowIndex)
|
{
|
if (model.rowIndexCellDict == null || !model.rowIndexCellDict.TryGetValue(rowIndex, out var list))
|
return;
|
for (int i = 0; i < list.Count; i++)
|
{
|
int awardIndex = list[i];
|
gainList[i].Display(awardIndex);
|
}
|
|
}
|
}
|