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()); }