public void StartMovement() { SoundToPlay.Stop(); if (_sound == SoundType.AllSounds || _sound == SoundType.OnlyMovementSounds) { SoundToPlay.Source = _currentImage.MovementSound; SoundToPlay.Play(); } }
private void soundTimer_Elapsed(object source, ElapsedEventArgs e) { Dispatcher.Invoke(() => { Controller.Pause(); SoundNeeded = false; SoundToPlay.Stop(); InteractionTimer.Start(); }); SoundTimer.Stop(); }