Hello...
I have this problem, that, when I spam clicking a button, the sounds it produces overlap; this is very annoying because I have sounds that are up to 4 seconds long.
I was looking through the code, and I realized that at the end, UIPlayButton calls NGUITools.PlaySound(), and it does a PlayOneShot(Audioclip, volume).
If I want to fix this sound spamming problem, what approach would you recommend me? (or would you do it?)
Because, one thing I could do, is instead of using the NGUI's scripts, I could just have a "Sound manager" with an Audiosource, and just check if the Audiosource is not playing, and if it not, it can play a new sound... But I was hoping there was a "NGUI" based solution for my problem, because otherwise I would have to restructure a few things...
As I told you, I know a few ways around it, but Ideally, It would love you have an NGUI based solution...