|
|
|
|
|
|
_instanciatedItems = new List<InventoryItemFiller>(); |
|
|
|
|
|
|
|
int maxCount = Mathf.Max(listItemsToShow.Count, _instanciatedItems.Count); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < maxCount; i++) |
|
|
|
{ |
|
|
|
if (i < listItemsToShow.Count) |
|
|
|
|
|
|
//hover First Element
|
|
|
|
if (_instanciatedItems.Count > 0) |
|
|
|
{ |
|
|
|
_instanciatedItems[0].HoverFirstElement(); |
|
|
|
_instanciatedItems[0].HoverFirstElement(); |
|
|
|
} |
|
|
|
} |
|
|
|
public void UpdateOnItemInInventory(ItemStack itemToUpdate, bool removeItem) |
|
|
|