public int InventoryAdd(Item item, int count) { InventoryPopup inventory = InventoryPop.GetComponent <InventoryPopup>(); return(inventory.AddItem(item, count)); }