コード例 #1
0
        //Network event
        protected virtual void OnError(UnityEngine.Networking.NetworkConnection conn, int errorCode)
        {
            //if (_menuUI != null)
            //{
            //    _menuUI.ShowDefaultPanel();
            //    _menuUI.ShowInfoPopup("A connection error occurred", null);
            //}

            if (_networkManager != null)
            {
                _networkManager.Disconnect();
            }
        }
コード例 #2
0
 //Assigned to back button. Ends SP server session and leaves the SinglePlayer menu.
 public void OnBackClick()
 {
     _netManager.Disconnect();
     _menuUi.ShowDefaultPanel();
 }
コード例 #3
0
 private void Back()
 {
     _netManager.Disconnect();
     _menuUi.ShowDefaultPanel();
 }