How do I set up this script to use the right trigger?
#pragma strict
var theBullet : Rigidbody;
var Speed = 20;
function Update () {
if (Input.GetAxis("Horizontal"))
{
var clone = Instantiate(theBullet, transform.position, transform.rotation);
clone.velocity = transform.TransformDirection(Vector3(0, 0, Speed));
animator.SetFloat ("RifeFire", v);
Destroy (clone.gameObject, 3);
}
}