public bool transferItemIntoInventory(Equippable item) { if (weaponGameObjectList.Contains(item)) { if (inventory.addItemToInventory(item.getScripatbleObject(), 1)) { Destroy(item.gameObject); weaponGameObjectList.Remove(item); return(true); } } return(false); }