Пример #1
0
        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();
        }
Пример #2
0
        protected void MultiplayerDialogCallback(MultiplayerSession editObject, IGUIChildEditor <MultiplayerSession> childEditor)
        {
            if (mDestroyed)
            {
                return;
            }

            EnableInput();
            GUIManager.ScaleDownEditor(childEditor.gameObject).Proceed(true);
        }