using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace vnxbqy.UI { public class VoucherLineCell : CellView { [SerializeField] List cells; VipModel vipModel { get { return ModelCenter.Instance.GetModelEx(); } } public void Display(int index) { for (int i = 0; i < 4; i++) { if (i + index < vipModel.voucherCTGList.Count) { cells[i].SetActiveIL(true); cells[i].Display(i + index); } else { cells[i].SetActiveIL(false); } } } } }