How to shoot in an FPS game...

Hi, I have a question...

How do I get a shooting animation to work. I am using this code but the shooting animation never even happens.

function Update () { if (Input.GetAxis("Vertical") > 0.2) animation.CrossFade("walk"); else animation.CrossFade("idle");

if(Input.GetButtonDown("Fire1"))
    animation.CrossFade("shoot");

}

Script I use:

var newObject : Transform;

function Update () 
{
    if( Input.GetButtonDown("Fire1") )
    {
    //shoot is the animation name.
        animation.CrossFade("shoot");
        Instantiate(newObject, transform.position, transform.rotation);
    }
}

Also, this is java.

Why don’t move the Bullet?