public void PlayFXSound(FXSounds fXSound) { if (fxDictionary.TryGetValue(fXSound, out AudioClip audioClip)) { EazySoundManager.GetUISoundAudio(EazySoundManager.PrepareUISound(audioClip)).Play(); } }
public static void PlaySoundEffect(FXSounds sound) { AudioComponent.soundEffects.ToArray()[(int)sound].Play(); }
public AudioClip GetClip(FXSounds sound) { return(FXSoundsPool[Convert.ToInt32(sound)]); }
public void PlayCLip(FXSounds clip) { AudioSource.PlayClipAtPoint(FXSoundsPool[Convert.ToInt32(clip)], transform.position); }
// ------------------------------------------------------------------------------------------------------------------------------------------ // 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); }