Do damage only while punching, not while walking into the enemy?

enable collision only when attacking and disable after