public void PlaySoundCollection(SoundCollection soundCollection) { if (soundCollection != null) { soundCollection.Play(fxAudioSource); } }
public void OnStep() { if (walkingSteps != null) { if (audioSource == null) { audioSource = GetComponent <AudioSource>(); } walkingSteps.Play(audioSource); } }