public void PlayFx(AudioName aName) { if (isSoundOn) { sfxSource.PlayOneShot(audioDict [aName.ToString()]); } }
public void PlayFx(AudioName aName, float delay) { if (isSoundOn) { sfxSource.clip = audioDict [aName.ToString()]; sfxSource.PlayDelayed(delay); } }
public void PlaySound(AudioName name, float volume) { if (audioClips[(int)name]) { AudioSource source = GetSoucre(); source.pitch = 1.0f; source.volume = volume; source.PlayOneShot(audioClips[(int)name]); } else { print("AudioManager : AudioClip[" + name.ToString() + "] is not setted"); } }
public void PlayFx(AudioName aName, float delay) { if (isSoundOn) { sfxSource.clip = audioDict [aName.ToString ()]; sfxSource.PlayDelayed (delay); } }
public void PlayFx(AudioName aName) { if (isSoundOn) { sfxSource.PlayOneShot (audioDict [aName.ToString ()]); } }
private void Play(AudioName name, float volume = 1) { Play(name.ToString(), volume); }