I recently bought and played a game named Godus. I’ve seen an interesting sound effect and I will try to replicate it into unity.
Here is the GameManager.cs:
* I’ve added a new variable, pSound, because I can’t find a way to declare a static variable that can be edited in the inspector.
And now you can call that function each time the player hits a coin, for example: