Footsteps and Jump sound
Footsteps
- Create a new "Audio Source" on your playermodel
- Give this Audio Source the footstep sound effect
- Check the "Loop" mark
- Disable the Audio Source
- Add the footsteps.cs script onto the playermodel
- Put the playermodel that holds the Audio Source in the empty fields
- Leave the Raycast Distance on 2
Jump sound
- Create an empty child object in the playermodel
- Give this an Audio Source
- And add the Jump sound effect
This Audio Source needs to be enabled and loop unchecked
- Add the JumpSound.cs script onto the playermodel
- Put the playermodel that holds the Audio Source in the empty fields
- Leave the Raycast Distance on 2