Hitbox Attack System Unity2D

Yeap, that’s zero from megaman. Do you know how he deals damage to enemies when he uses his sword? Well, the answer is simple…
Hitbox Attack System!
Maybe you’ve heard about RayCast in Unity. You probably use it to pick objects with the mouse, create lasers from one point to another etc.
This can be also used to make player attacks, detect the enemies inside that attack area and make damage to them.

In this simple line of code we are creating an OverlapCircleAll, we can detect all enemies into a certain circle with a custom size.
Deal Damage To Enemies
