public void OnClickMultiplayerButton() { GameObject dialog = GUIManager.SpawnNGUIChildEditor(gameObject, GUIManager.Get.NGUIMultiplayerDialog, false); MultiplayerSession editObject = new MultiplayerSession(); GUIManager.SendEditObjectToChildEditor <MultiplayerSession>(new ChildEditorCallback <MultiplayerSession>(MultiplayerDialogCallback), dialog, editObject); DisableInput(); }
protected void MultiplayerDialogCallback(MultiplayerSession editObject, IGUIChildEditor <MultiplayerSession> childEditor) { if (mDestroyed) { return; } EnableInput(); GUIManager.ScaleDownEditor(childEditor.gameObject).Proceed(true); }