Exemplo n.º 1
0
 public void Unpack(InventoryItem _item, List <InventoryItem> _myList, List <InventoryItem> _otherList, HellaHockster _hellaHockster)
 {
     iTooltip          = Inventory.GetItemTooltip();
     iItem             = _item;
     myList            = _myList;
     otherList         = _otherList;
     hellaHockster     = _hellaHockster;
     itemName.text     = iItem.item.name;
     itemQuantity.text = iItem.quantity.ToString();
 }
Exemplo n.º 2
0
 public void Unpack(List <InventoryItem> items, List <InventoryItem> _otherList, HellaHockster _hellaHockster)
 {
     //Clear the slots first
     ClearLineItems();
     foreach (var iItem in items)
     {
         //Instantiate each item
         if (iItem.item.category == CategoryItem.Trash)
         {
             GameObject newGO = Instantiate(itemPrefab, contentTransform, false);
             lineItems.Add(newGO);
             newGO.GetComponent <HocksterLineItem>().Unpack(iItem, items, _otherList, _hellaHockster);
         }
     }
 }