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

            walkingSteps.Play(audioSource);
        }
    }