Third Person Controller animation problem

I have rigged a model and created 2 animations for it…idle and walk.
Once I imported the models with the animations on I then attached the Third Person Camera and TP Controller scripts to the model.
Now when I play the game my player is constantly playing the same animation even when Im not pushing any buttons…any ideas on what I have done wrong?

The ThirdPersonController script will not automatically handle the playing of animations for you, just the movement of your character. You’re going to have to decide when a certain animation should play by throwing in an Animation.Play(“walk”) and Animation.Play(“idle”) into the ThirdPersonController script wherever you need it to be.

That is, assuming those are the names of your animations.