GameObject connectToServerUI;
UIButton button;
void Start ()
{
connectToServerUI = GameObject.Find("Container - Connect to Server Box");
button
= (UIButton
)this.GetComponent(typeof(UIButton
)); // StartCoroutine(Disable());
NGUITools.SetActive(connectToServerUI, false);
}
//tried quick coroutine for testing purposes to see if this has any effect, which it doesn't.
IEnumerator Enable()
{
NGUITools.SetActive(connectToServerUI, true);
yield return null;
}
IEnumerator Disable()
{
NGUITools.SetActive(connectToServerUI, false);
yield return null;
}
int clicks = 0;
public void OnClick()
{
clicks ++;
// StartCoroutine(Enable());
NGUITools.SetActive(connectToServerUI, true);
Debug.Log("Clicks "+clicks);
}