Setting an animation

So i’m using animators to move some floating limbs similar to mii’s in nintendo stuff, and I can’t seem to figure out how to get an animation to play using the scripts. I need to be able to say click to make it play an animation, but I can’t get the animation to change during play time. How would I do this?

Hum if I understand, it’s very easy , you’ve to open the animator controller, and create some parameters

For each animation, you have added to your player you can see a state in the animator window, so you have to right-click a state an create a transition to other animation, in the transition inspector you can add the parameters. In code, you can modify these parameters value, this is an example

    	public void something()
    		{
            private Animator Anim;
        	    Anim=gameObject.GetComponent<Animator>();
    			Anim.SetBool("caminando",true);
    
    
    		}