using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
namespace vnxbqy.UI
|
{
|
|
public class GatherSoulPackCell : CellView
|
{
|
[SerializeField] GatherSoulItemBehaviour[] m_GatherSoulItems;
|
|
|
GatheringSoulModel model
|
{
|
get { return ModelCenter.Instance.GetModel<GatheringSoulModel>(); }
|
}
|
|
public void Display(int listList)
|
{
|
var soulPack = model.GetGatherSoulPack();
|
for (int i = 0; i < m_GatherSoulItems.Length; i++)
|
{
|
int index = listList + i;
|
if (index < soulPack.Count)
|
{
|
m_GatherSoulItems[i].SetActive(true);
|
m_GatherSoulItems[i].Display(soulPack[index]);
|
}
|
else
|
{
|
m_GatherSoulItems[i].SetActive(false);
|
}
|
}
|
}
|
}
|
}
|
|