Scripting for Mecanim

Hi, I have been trying to learn the Mecanim system lately and it seem to work good but I haven’t found any tutorial that actually explains how to script the inputs so you can move the character. Like in the official Mecanim tutorial he has a bot script, but I need to learn how to make a similar script.Could anybody please explain how to do it or if you have found a good tutorial please give a link to it. thanks.

it is fairly easy, the inputs on the left bottom are kind of ‘static’ variables. You can acces them by calling your animation controller containing your animation tree like so:

private var anim:Animator;
private var YourVar:boolean=false;

function Update () {
//write this bool to the animator tree variable
//YourVarInTree is the variable you set in the animator
anim.SetBool("YourVarInTree", YourVar);

if(Input.GetButtonDown("Equip")&&YourVar==false){
YourVar=true;
}

}

as you can see it looks like the save system of unity.