Enemy death on jump,Jump on enemy to destroy

New to unity and was wondering to destroy an enemy by jumping on them.

Good day.

Then, go learn about this functions, components. You need to detect when the “feet” of the player collide with the “head” of the enemy by using colliders set as “trigger” using the function OnTriggerEnter(). Then execute the Destroy() function

BoxCollider (or BoxCollider2D)

OnTriggerEnter()

Destroy()

And as @xxmariofer said, if you are asking this, maybe you need to spend 4-5 hours of basic tutorials about unity. There are several youtube videos about creating games, basic features and functions… you will need it!

Good luck! Bye!