public void PreviousSlide() { var hasChangedSlide = false; if (AttachedObject._slideItem != null && AttachedObject._slideItem.slidesContainer.PrevSlideAvailable()) { hasChangedSlide = AttachedObject._slideItem.slidesContainer.DecreaseSlideIndex(); if (hasChangedSlide) { if (AttachedObject._oneShotSource != null) { AttachedObject._oneShotSource.PlayOneShot(AudioType.Projector_Prev); } if (AttachedObject.IsProjectorFullyLit()) { AttachedObject._slideItem.slidesContainer.SetCurrentRead(); AttachedObject._slideItem.slidesContainer.TryPlayMusicForCurrentSlideTransition(false); } } } if (AttachedObject._gearInterface != null) { var audioVolume = hasChangedSlide ? 0f : 0.5f; AttachedObject._gearInterface.AddRotation(-45f, audioVolume); } }