//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(); } }
//Assigned to back button. Ends SP server session and leaves the SinglePlayer menu. public void OnBackClick() { _netManager.Disconnect(); _menuUi.ShowDefaultPanel(); }
private void Back() { _netManager.Disconnect(); _menuUi.ShowDefaultPanel(); }