Can't Switch Between Legacy Animations

I have 2 animations for an FPS arm/gun. One for hipfire and one for aiming down sights. The problem is it only plays the hipfire animation even when aiming down sights. I’m using a simple javascript in Unity 5. Is there something I’m missing?

The “Pistol001Shot” is the hipfire and the “Pistol001ShotAim” is the aim down sights.

var gunsound : AudioSource = GetComponent.<AudioSource>();

function Update () 
{
	if (Input.GetButtonDown("Fire1"))
	{
		if (Input.GetButtonDown("Fire2"))
		{
			gunsound.Play();
			GetComponent.<Animation>().Play("Pistol001ShotAim");
		}
		else if (!Input.GetButtonDown("Fire2"))
		{
			gunsound.Play();
			GetComponent.<Animation>().Play("Pistol001Shot");
		}
	}
}

Input.GetButtonDown returns true only in the frame that the button has been pressed down.

This means, to get into the branch that plays Pistol001ShotAim, you have to simultanously press Fire1 and Fire2 in the exact same frame. Not very likely.

You probably want to test for Input.GetButton("Fire2") in line 7 and 12 (which returns true as long as the button is held down - not only in the frame when its pressed).