My game + use tags in OnCollisionEnter2D

My delivery driver game with a silly UI element that shows whether the car is carrying a package.


mymap3

Also, in OnCollisionEnter2D, using

other.tag

will return an error, but using

other.gameObject.tag

won’t, so with this and destroy you can make a collidable bump/boost that disappear once you get it.

2 Likes

That’s cool, I like the UI element you added. Very creative!

1 Like

Privacy & Terms