Make two game objects interact via animation JS

What I mean by the title is pretty much a counter system. Lets say I make one person throw a punch, then the punch would glow red for the right timing, how would i make it so when the other person presses a button the two characters play animations which show one counter punching and the other one getting hit.

If i make them just play the animation, they could be in the wrong spot so everything would look out of place, literally.

Sorry, I’m working in C#, I can give you code.

In Unity you can Add an Animation component on your GameObject, assign your punch annimation and then control it in script.