This video demonstrates how to set up a health system and health bar in a 2D platformer game in Unity.
Code for this tutorial -
Health script: https://github.com/danielkwood/Unity2...
HealthBar script: https://github.com/danielkwood/Unity2...
Updated PlayerController script: https://github.com/danielkwood/Unity2...
Unity website - https://unity.com
GitHub - https://github.com/danielkwood/Unity2...
Free Pixel Space Platform Pack - https://assetstore.unity.com/packages...