How to target a gameobject in C# to play animation

I have a script attach to my Character but i want to make the enemy play an animation from that script, so i think i should target the game object (or the enemy) and play its animation on my character script but the problem is i dont know how to do it so please help me thank you

You can give the character script to enemy script by giving the referance of the character…

If i understand your question:

enemy.animation.Play();