In part 5b of this Unity3D tutorial we add a way for the player to kill the enemy. The player will be able to jump on top of an enemy to kill it and bounce up.
Visit my website to see the code: http://www.devination.com/2016/04/part-5b-enemy-combat-and-death.html
Twitter: https://twitter.com/Devination3D
Time Breakdown:
0:33 - Adding the Hurt function to our Enemy
1:47 - Check contact point(s) between Enemy and Player
4:04 - Visualizing our contact points and normals in game
5:13 - Changing player collide
آی-ویدئو