// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.RightControl) && AmmoManager.Ammo > 0) { AmmoManager.SubtractPoints(PointsToSubtract); Instantiate(Projectiles, FirePoint.position, FirePoint.rotation); } }