I am running into a problem with getting a gameObject to destroy when two other gameObjects collide. I am making a simple game where bunnies eat a player’s carrot from their garden, when a bunny reaches and touches (collides) with the garden, the player loses a carrot. I have that part working as intended, but when I try to switch to having an actual 2D carrot get destroyed instead of in the GUI, I am unable to do so. So basically I want the bunny to hit the garden and subtract/destroy the...
Getting a gameObject to destroy when two other gameObjects collide
Getting a gameObject to destroy when two other gameObjects collide