JavaScripting to control animation clips?


I have a problem trying to play an amination for a character in my game. The animation and character are from a blender file. I would like to know how to javascript the character to play the animation when needed. The animation I’m currently wanting to have play in game is the default animation, waiting. Other animations are of the character in action. Can that as well be in the same script file?

Does anyone have an idea for this?

Thank you.

One good way to manage different animations of the object is via Unity mecanim
look here there are many tutorials on that on Youtube.

Basically is the best way to manage states like walking waiting etc and also adjust blending between them so it all looks very smooth.