コード例 #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);
        }