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

  1. Box Collider 2D Assigned ( Even if 2.5D Game )

  2. "Enemy" Tag & Layer assigned on the object with the collider.

  3. EnemyHealth component assigned & customized

Last updated