Exemplo n.º 1
0
 public void PlayFXSound(FXSounds fXSound)
 {
     if (fxDictionary.TryGetValue(fXSound, out AudioClip audioClip))
     {
         EazySoundManager.GetUISoundAudio(EazySoundManager.PrepareUISound(audioClip)).Play();
     }
 }
Exemplo n.º 2
0
 public static void PlaySoundEffect(FXSounds sound)
 {
     AudioComponent.soundEffects.ToArray()[(int)sound].Play();
 }
Exemplo n.º 3
0
 public AudioClip GetClip(FXSounds sound)
 {
     return(FXSoundsPool[Convert.ToInt32(sound)]);
 }
Exemplo n.º 4
0
 public void PlayCLip(FXSounds clip)
 {
     AudioSource.PlayClipAtPoint(FXSoundsPool[Convert.ToInt32(clip)], transform.position);
 }
Exemplo n.º 5
0
 // ------------------------------------------------------------------------------------------------------------------------------------------
 //  Play FX Sound
 // ------------------------------------------------------------------------------------------------------------------------------------------
 public void PlaySoundFX(FXSounds soundId)
 {
     //Playing one shot We play new sound each time we call it
     m_audioSourceFX.PlayOneShot(m_FXThemeSounds[(int)soundId], 1.0f);
 }