Hello
I'm trying to get my button working in NGUI unity, so that when someone clicks on it, it will quit the application, i've got collider on it and my own script with OnClick function and UI button message.
When i click on the button in play mode though it comes up with the overflow errors. I just want the application to close. On my button I have Box Collider, UI Button (Script), My button click script, UI button color and ui button message.
public class buttonClick : MonoBehaviour
{
void OnClick()
{
Application.Quit();
}
}
![alt text][1]
[1]: /storage/temp/49193-screenshot-at-jun-30-15-07-54.png
↧