During this challenge i came up with a different version, because in the unity documentation the PalyClipAtPoint method, has the Vector 3 value to define, so i thought that playing the sound on the pickup was the way to go, so i did this:
Basically it checks the position in the scene of the object and play the sound there when the player picks it up…hope this version will not bite me in the ass as everytime i do something different from Rick xD
1 Like
If it works for your current purpose, it is not wrong. That’s all part of programming. If you run into a problem down the road, you may need to do some refactoring of your code or adjustments within Unity. It’s your project/game and thinking outside the box to make it yours is what it’s all about!
Great job looking up the Unity PlayClipAtPoint method documentation and using it in your project.
1 Like