private void StartShakeEvent(object sender, WeaponShootEventArgs e) { if (GameSettings.ShouldShake) { this.StartShake(GameSettings.ShotShake, GameSettings.ShakeDecrease); } }
void Weapon_Shoot(object sender, WeaponShootEventArgs args) { if (!_ShootStarted) { _ShootStarted = true; if (_Audio != null) { if (_Audio.isPlaying) { _Audio.Stop(); } _Audio.clip = FireSound; _Audio.loop = true; _Audio.Play(); } } }