I have been searching for a while about how to destroy an object if it collides with another.
Basically, the game I am trying to make involves the player object shooting waves of enemies coming down (It’s a very unoriginal idea, but hopefully one to learn from).
However, the only c# tutorial I found has the object destroyed if it collides with anything, but barely explains what’s happening.
So how would I go about writing a c# script that destroys the player if it collides with an enemy, and stops the wave?
Thanks in advance!