using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
namespace EnhancedUI.EnhancedScroller
|
{
|
public class MarketPutedItemCell : CellView
|
{
|
[SerializeField] MarketPutedItem[] m_MarketPutItems;
|
|
public void Display(params int[] _indexs)
|
{
|
if (_indexs == null)
|
{
|
return;
|
}
|
var _list = PlayerDatas.Instance.market.putawayList;
|
for (int i = 0; i < m_MarketPutItems.Length; i++)
|
{
|
m_MarketPutItems[i].gameObject.SetActive(_indexs[i] < _list.Count
|
&& _indexs[i] != -1);
|
if (_indexs[i] != -1 && _indexs[i] < _list.Count)
|
{
|
m_MarketPutItems[i].Display(_indexs[i]);
|
}
|
}
|
}
|
}
|
}
|