I think good way would be to have a square collider in front of the player and activate it as soon as you attack for the duration of the animation.
But still great job on your game