Blog comment #4 Timothée Engel
|
The blog is written in a clear order, you first explained the importance of the diverse sound feedback in game and the common solution for people is to change the pitch of the same sound asset. However, it’s still costly if create different pitches manually. Therefore, you introduced the usage of the AudioSource component and how to access it via script. It’s pretty smart to adjust the pitch combining the Random function and it’s the perfect solution to the problem i encountered in my project! However, there are still some hard coding in the example codes. I would recommend to use another float variable called maxInterval and you add it to the original pitch. You could also pass 1 to the a float variable at the start and make it: |