Пример #1
0
        public AudioClip GetAudioClip(GameAudioClipType type)
        {
            AudioClip audioClip = null;

            AudioClipDictionary.TryGetValue(type, out audioClip);
            return(audioClip);
        }
Пример #2
0
 public void PlayAudioClip(GameAudioClipType type, float pitch)
 {
     _effectAudioSource.pitch = pitch;
     _effectAudioSource.PlayOneShot(GetAudioClip(type));
     _effectAudioSource.pitch = 1;
 }
Пример #3
0
 public void PlayAudioClip(GameAudioClipType type)
 {
     _effectAudioSource.PlayOneShot(GetAudioClip(type));
 }