Example #1
0
        private void PlayFootstep(float volume)
        {
            if (currentFootstepSoundList == null)
            {
                return;
            }

            currentFootstepSoundList.PlayRandomClip(dfAudioSource, customAudioSource, volume);

            if (currentFootstepSoundList != this.FootstepSoundSubmerged && HasArmor())
            {
                FootstepsArmor.PlayRandomClip(dfAudioSource, customAudioSource, volume);
            }
        }