how to Punch enemy?

I working on a side scroll hack and slash game, I have animated the characters (some punch and kick combos) and I have animtions on the enemy (like being hitted),I have a punch function in player script and a BeingHitted function on the enemmy script, I want to know how Set and script collutions so that when the player punches and it hits the enemy ,it calls the BeingHitted method?(right now the animation are being played but there is no collution so there is no hitting)

try putting a collider on both the character and the enemy then setting both to a trigger. Then call an OnTriggerEnter function when the collider of the character intercepts the collider on the enemy. Call your getting hit funcion in the OnTriggeEnter function.