Im building a stickman fighting game and i'm having some problems setting up the code for basic melee combat. I have read and watched different tutorials but i can't seem to get it to work. Essentially when you hit a button then it should play a animation. When the enemy comes in contact with the player while he is performing said animation then he will lose one health. Just need in code form