/// @param sfxID /// The sfx to play /// public void PlaySFX(string sfxID) { if (m_audioService != null && string.IsNullOrEmpty(sfxID) == false) { m_audioService.PlaySFX(sfxID); } }
/// Called when the player wants to go back /// protected virtual void OnBackButtonRequest() { m_audioService.PlaySFX(AudioIdentifiers.k_sfxButtonBack); if (m_exitSceneID == string.Empty) { m_sceneService.UnloadScene(); } else { m_sceneService.SwitchToScene(m_exitSceneID); } }
/// Called when the confirm button is pressed /// public void OnConfirmButtonPressed() { m_audioService.PlaySFX(s_sfxConfirmPressed); RequestDismiss(); }