Beispiel #1
0
 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();
         }
     }
 }
Beispiel #2
0
 private void SetFriction(SoundController actualSource, SoundController stopSource, TankFrictionSoundEffectComponent tankFrictionSoundEffect, Vector3 velocity)
 {
     this.SetFrictionVolume(actualSource, tankFrictionSoundEffect, velocity);
     actualSource.FadeIn();
     stopSource.FadeOut();
 }