示例#1
0
 /// @param sfxID
 ///     The sfx to play
 ///
 public void PlaySFX(string sfxID)
 {
     if (m_audioService != null && string.IsNullOrEmpty(sfxID) == false)
     {
         m_audioService.PlaySFX(sfxID);
     }
 }
示例#2
0
 /// 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);
     }
 }
示例#3
0
 /// Called when the confirm button is pressed
 ///
 public void OnConfirmButtonPressed()
 {
     m_audioService.PlaySFX(s_sfxConfirmPressed);
     RequestDismiss();
 }