Beispiel #1
0
        protected void PlayAbilitySound()
        {
            var abilitySound = config.GetRandomAbilityAudioClip();
            var audioSource  = GetComponent <AudioSource>();

            audioSource.clip = abilitySound;
            audioSource.Play();
        }