Пример #1
0
        protected void PlayAbilitySound()
        {
            var abilitySound = config.GetRandomAudioClip();
            var audioSource  = GetComponent <AudioSource>();

            audioSource.PlayOneShot(abilitySound);
        }
        protected void PlayAudioClip()
        {
            var audioSource = GetComponent <AudioSource>();

            audioSource.PlayOneShot(config.GetRandomAudioClip());
        }