character movement script

i have create a character in blender and exported it as .fbx. I just want to know if you can give me a sample script so that I can call the animation “walk_cycle” so that my character will be able to walk on my game. thanks

Your title and post are a bit confusing. Do you want to just call the animation to play on a button press? Or did you want to call the animation playing while moving as well?

A basic play would be:

void Update()
{
     if( Input.GetMouseButtonDown(0) )
     {
          animation.Play( "walk_cycle" );
     }
}

This will play the animation when you press the left mouse button on the Game View.