예제 #1
0
 public void PlayFootstepSound()
 {
     if (audioTarget != null)
     {
         audioTarget.PlayFootstepSound();
     }
 }
예제 #2
0
 private void InternalPlayFootstepSound()
 {
     if (audioType == AudioTypes.Standard)
     {
         PlayFootstepSound();
     }
     else if (audioType == AudioTypes.Custom && customBehaviour != null)
     {
         customBehaviour.PlayFootstepSound();
     }
 }