using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace vnxbqy.UI { public class GatherSoulAttrCell : CellView { [SerializeField] List attrTexts; GatheringSoulModel model { get { return ModelCenter.Instance.GetModel(); } } public void Display(int listIndex) { var attrDict = model.GetAllSoulAttr(); for (int i = 0; i < attrTexts.Count; i++) { int index = listIndex + i; if (index < model.attrIDList.Count) { int id = model.attrIDList[index]; attrTexts[i].text = PlayerPropertyConfig.GetFullDescription(id, attrDict[id]); } else { attrTexts[i].text = ""; } } } } }