How to make attacks work.

Basically I have an attack animation for my character (haven’t set up health for the enemy, but have for the player) the enemy has a "hurt animation that is supposed to be triggered by a collision, what I’m trying to do is make the attack animation be what causes damage, not just bumping into the enemies. Thank you for helping. here is my game:

Looks like you got it