Пример #1
0
        protected void PlaySoundEffect()
        {
            AudioSource audioSource = GetComponent <AudioSource>();
            var         soundEffect = config.GetRandomSoundClip();

            audioSource.PlayOneShot(soundEffect);
        }