public void PlayMenuSFX(MenuSFX soundEffect, string sourceName = "Global")
 {
     if (DoesSFXSourceExist(sourceName))
     {
         m_SFXSources[sourceName].PlayOneShot(m_MenuSoundEffectClips[(int)soundEffect]);
     }
 }
示例#2
0
 public void PlayMenuSoundEffect(MenuSFX _sfx)
 {
     if (m_MenuTracks == null)
     {
         return;
     }
     LoadTracksToLists();
     m_MenuTracks[(int)_sfx].Stop();
     m_MenuTracks[(int)_sfx].Play();
 }
示例#3
0
 public void PlayMenuSoundEffect(MenuSFX _sfx)
 {
     if (m_MenuTracks == null)
         return;
     LoadTracksToLists();
     m_MenuTracks[(int) _sfx].Stop();
     m_MenuTracks[(int) _sfx].Play();
 }
 public void PlayMenuSFX(MenuSFX sound)
 {
     EffectsTrack.PlayOneShot(MenuSounds[(int)sound], _effectsVolume);
 }