Пример #1
0
 public static AudioSource PlayClipAtPoint(AudioSettings soundSettings, Vector3 pos,
                                           float delay            = 0f,
                                           SoundSourceType source = SoundSourceType.Unknown)
 {
     if (soundSettings != null)
     {
         return(PlayClipAtPoint(soundSettings.audioClip, pos,
                                soundSettings.volume, soundSettings.RandomPitch(), delay, source));
     }
     return(null);
 }