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”);
}
}
jister
2
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
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