Exemplo n.º 1
0
        public AudioClip GetAudioClip(GameAudioClipType type)
        {
            AudioClip audioClip = null;

            AudioClipDictionary.TryGetValue(type, out audioClip);
            return(audioClip);
        }
Exemplo n.º 2
0
 public void PlayAudioClip(GameAudioClipType type, float pitch)
 {
     _effectAudioSource.pitch = pitch;
     _effectAudioSource.PlayOneShot(GetAudioClip(type));
     _effectAudioSource.pitch = 1;
 }
Exemplo n.º 3
0
 public void PlayAudioClip(GameAudioClipType type)
 {
     _effectAudioSource.PlayOneShot(GetAudioClip(type));
 }