Health



I created a health script that controls the health of the player and enemies. Screenshot above is health script applied to the player and is out of 100 but the script is also added to the enemies. There are some components and scripts called in the health script to animate enemies when they receive damage as they are navmesh agent, zombie animator and zombie controller. Shooting script has a specific damage that can hurt the enemies per shot. 


The enemy attack script is based on the enemy's attack point and is linked with the health script to cause damage to the player. 

Get Last Survivor