void Update ()
{
if (Input.GetButton ("Fire2") && allowCancel) {
Debug.Log ("Cancel");
NGUITools.SetActiveSelf (_Menu, true);
startSelected.startsSelected = true;
UICamera.selectedObject = startSelected.gameObject;
NGUITools.SetActiveSelf (_thisMenu, false);
}
if (Input.GetButton ("Fire1") && UICamera.selectedObject == this.gameObject && !allowCancel) {
Debug.Log ("Select");
NGUITools.SetActiveSelf (_Menu, true);
startSelected.startsSelected = true;
UICamera.selectedObject = startSelected.gameObject;
NGUITools.SetActiveSelf (_thisMenu, false);
}
}