using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
namespace vnxbqy.UI
|
{
|
|
public class GatherSoulAttrCell : CellView
|
{
|
[SerializeField] List<Text> attrTexts;
|
|
|
GatheringSoulModel model
|
{
|
get { return ModelCenter.Instance.GetModel<GatheringSoulModel>(); }
|
}
|
|
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 = "";
|
}
|
}
|
}
|
}
|
}
|
|