Importing and playing animations

Hi!
I want to animate my object in Blender. How can I import animations from Blender to Unity and how can I play it by script? There are no tutorials about animations on this page.

Try this script:

//animation play script

function Update () {
if(Input.GetKey(KeyCode.A)){ //when pressed a animation will start to play(when you press a,hold it)
animation.CrossFade("YourAnimationClipName"); //you need to set name of your animtion where i wrote YourAnimationClipName,and you need to set animation type to legacy in unity.
}                                         
}