sortItems() public method

public sortItems ( ) : void
return void
コード例 #1
0
 void OnBackpack(Item item)
 {
     if (item.itemType == ItemType.Backpack)
     {
         for (int i = 0; i < item.itemAttributes.Count; i++)
         {
             if (mainInventory == null)
             {
                 mainInventory = inventory.GetComponent <Inventory>();
             }
             mainInventory.sortItems();
             if (item.itemAttributes[i].attributeName == "Slots")
             {
                 changeInventorySize(item.itemAttributes[i].attributeValue);
             }
         }
     }
 }