Adding Enemies
If you want an object to be an Enemy, you will need this object to have a collider. Then, attach EnemyHealth.cs to it, and modify the parameters as you like. Finally, add the “Enemy” tag and the “Enemy” layer.
If you have no missing references on EnemyHealth component, you should now be able to damage your enemy!

Checklist
Box Collider 2D Assigned ( Even if 2.5D Game )
"Enemy" Tag & Layer assigned on the object with the collider.
EnemyHealth component assigned & customized
Last updated