Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Getting a gameObject to destroy when two other gameObjects collide

$
0
0
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

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>