public void UpdateInput() { if (Input.GetButton("Fire1") && CurrentGun != null) { CurrentGun.Fire(); //call the current gun's fire function. (left mouse button) } }
public void UpdateInput() { if (Input.GetButton("Fire1") && CurrentGun != null) { CurrentGun.Fire(); } }
public void UpdateInput() { if (Input.GetAxis("Right_Trigger") >= .2 && CurrentGun != null) { CurrentGun.Fire(); } //if (Input.GetButton("Fire1") && CurrentGun != null) CurrentGun.Fire(); }