void Update() { if (Input.GetMouseButton(0)) { if (shootingScript.AbleToShoot() && !playerMovement.isSprinting) { shootingScript.ShootPrimaryWeapon(); } } }
void Fire() { if (target == null) { return; } if (CheckIfTargetInFiringArc()) { if (shooting.AbleToShoot()) { shooting.ShootPrimaryWeapon(); } } }