using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
namespace Snxxz.UI
|
{
|
[XLua.Hotfix]
|
public class GatherSoulPackCell : CellView
|
{
|
[SerializeField] GatherSoulItemBehaviour[] m_GatherSoulItems;
|
|
|
GatheringSoulModel model
|
{
|
get { return ModelCenter.Instance.GetModel<GatheringSoulModel>(); }
|
}
|
|
public void Display(int line)
|
{
|
for (int i = 0; i < m_GatherSoulItems.Length; i++)
|
{
|
var index = line * m_GatherSoulItems.Length + i;
|
if (index < model.packIndexs.Count)
|
{
|
m_GatherSoulItems[i].Display(model.packIndexs[index]);
|
}
|
else
|
{
|
m_GatherSoulItems[i].Display(-1);
|
}
|
}
|
}
|
}
|
}
|