public void PickUp(Inventory inventory) { if (inventory != null) { if (item.AddToInventory(inventory)) { Destroy(gameObject); } } }
public void PickUp(Inventory inventory) { if (inventory != null) { if (item.AddToInventory(inventory)) { Destroy(gameObject); } } }