private void PickUpMunition(GameObject munitionGameObject) { // add the element, that was picked up to the "inventory" Munition munition = munitionGameObject.GetComponent <Munition>(); _inventory.AddToInventory(munition); Destroy(munitionGameObject); }