public AudioClip GetAudioClip(GameAudioClipType type) { AudioClip audioClip = null; AudioClipDictionary.TryGetValue(type, out audioClip); return(audioClip); }
public void PlayAudioClip(GameAudioClipType type, float pitch) { _effectAudioSource.pitch = pitch; _effectAudioSource.PlayOneShot(GetAudioClip(type)); _effectAudioSource.pitch = 1; }
public void PlayAudioClip(GameAudioClipType type) { _effectAudioSource.PlayOneShot(GetAudioClip(type)); }