I have built a setup that is supposed to kill the enemy when player jumps on their head, much like a goomba from mario. but the enemy doesn’t die when player jumps on the box collider, that is parented to the enemy. Any tips that might help make this work after parent var is named in the inspector?
I have heard of OnCollisionEnter , Exit, and Stay. But never heard of OnCollision. Maybe I missed that one. Anyway, in your case, I recommend you use function OnCollisionEnter ( ) . Hope this helps.