Can anyone tell if there is a common code for adding animation to my character?

I have character, I have animation, Just need a common code for adding animation for walking, jumping, aiming and shooting. If there no way. Please provide me a reference code (c#) from where I could know how to use.

Do you assign the animator to the character?