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!

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