private void ProcessFire() { delayBeforeNextFire -= Time.deltaTime; if (Input.GetAxis("Fire1") != 0) { if (delayBeforeNextFire <= 0) { ShootBullet(); audioSource.PlayOneShot(CurrentGunShotSound); bulletLeft -= 1; currentWeapon.bulletLeft -= 1; delayBeforeNextFire = fireDelay; BulletShot.Invoke(); fpsc.AddRecoil(); CreateMuzzleFlash(); } } }