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

            walkingSteps.Play(audioSource);
        }
    }