I have UIButton with OnClick event and UIPlay Animation which is about 0.5s long.
What I did to OnClick event is
Invoke("ChangeScene", 0.5f);
So that the user can see the UIPlay Animation before the scene is switched.
But the problem is, the user can click more than once before the scene is switched.
I can define a local variable to keep track so the button can only be clicked once but I have many buttons in my game so I don't want to define so many variables myself unless it's the only way.
Is there any quick way in NGUI to do this task: Disable UIButton after click
Or I can handle this in any other way?
Thank you.