Snowboarder - Fail Sound Effect not working

I got the success sound effect to work beautifully with little guidance actually. But when I’m trying the PlayOneShot function for the fail per the video, it messes with things:

  1. The sound effect doesn’t play
  2. It triggers an ArgumentNullException
  3. It won’t reload scene after a crash now

Here’s my screenshot of the code for the crash script

There’s not enough information to be sure, but at a guess it’s one of the following:
the AudioSource component isn’t on the GameObject
or the crashSFX isn’t assigned in the inspector
or the crashParticle isn’t assigned in the inspector.

3 Likes

Yup! Didn’t add the AudioSource haha. Thank you!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms