private void UpdateIsisSoundEffect(IsisCurrentSoundEffectComponent isisCurrentSoundEffect, SoundController soundController) { if (!isisCurrentSoundEffect.WasStopped) { if (!isisCurrentSoundEffect.WasStarted) { isisCurrentSoundEffect.SoundController = soundController; isisCurrentSoundEffect.WasStarted = true; soundController.FadeIn(); } else if (isisCurrentSoundEffect.SoundController != soundController) { isisCurrentSoundEffect.SoundController.FadeOut(); isisCurrentSoundEffect.SoundController = soundController; soundController.FadeIn(); } } }
private void SetFriction(SoundController actualSource, SoundController stopSource, TankFrictionSoundEffectComponent tankFrictionSoundEffect, Vector3 velocity) { this.SetFrictionVolume(actualSource, tankFrictionSoundEffect, velocity); actualSource.FadeIn(); stopSource.FadeOut(); }