//Shoot animation//
function Update() {
if( Input.GetButtonDown( “Fire1” ) ){
animation.Play(“Shoot”);
animation.Play(“idle”);
}
else if( Input.GetButtonUp( “Fire1” ) ){
animation.Play(“idle2”);
animation.Stop(“idle”);
}
}
You’ll need a timer to count the one second between idle and shoot, or a coroutine. Also, Take a look at the function animation.CrossFade.