can some one help me with this animation script i want it to play when i press left

click but it doesn’t play at all help

var clip : AnimationClip;

function Start () {

}

function Update () {

if(Input.GetButtonDown(“Fire1”)){

animation.Play(“pullback anamtion”);

}

if(Input.GetButtonUp(“Fire1”)){

animation.Stop(“pullback anamtion”);

}

}

if its for mecanim, http://video.unity3d.com/video/7362044/unity-40-mecanim-animation-tutorial

never mind i fixed it

var clip : AnimationClip;

function Start () {

}

function Update () {

if(Input.GetButtonDown(“Fire1”)){

animation.Play(clip.name);

}

}

but now im trying to get to play the animation when i push r

Please use tags.

sorry im new how ?

like this

if(Input.GetKeyDown(KeyCode.R))

Like this

thanks every one i forgot about this forum i made i had my friend thats also making to help me with it heres the script