In part 5a of this Unity3D tutorial we add Player Damage and Death. The player will take damage from touching enemies but become invincible for a short time afterwards. If the player takes 3 hits, then the player dies and the level restarts.
Visit my website to see the code: http://www.devination.com/2016/01/unity-2d-platformer-tutorial-part-5a.html
Twitter: https://twitter.com/Devination3D
Google+ Community: https://plus.google.com/communities/108584850180626452949
Facebook: https://www.facebook.com/unity
آی-ویدئو