Basically I want a sound effect to play when my player collides with a box collider. It’s working, however the sound continues to loop even though I have the sound effect set to not loop. The sound is in an audio source which is in the player, and I tried “PlayOneShot” but was fairly confused by it. So if that’s what I should be using, some explanation to it and how exactly I’d implement it in the code would be awesome.
You can either do as Intense_Gamer94 suggested before my reply, in which case you will need to specify your AudioClip on each call, or simply (within Start) set the following: