protected virtual void OnError(UnityEngine.Networking.NetworkConnection conn, int errorCode) { if (m_MenuUi != null) { m_MenuUi.ShowDefaultPanel(); m_MenuUi.ShowInfoPopup("A connection error occurred", null); } if (m_NetManager != null) { m_NetManager.Disconnect(); } }
protected virtual void OnDrop() { MainMenuUI menuUi = MainMenuUI.s_Instance; if (menuUi != null) { menuUi.ShowDefaultPanel(); menuUi.ShowInfoPopup("Disconnected from server", null); } if (m_NetManager != null) { m_NetManager.Disconnect(); } }
protected virtual void OnError(NetworkConnection conn, int errorCode) { MainMenuUI menuUi = MainMenuUI.s_Instance; if (menuUi != null) { menuUi.ShowDefaultPanel(); menuUi.ShowInfoPopup("A connection error occurred", null); } if (m_NetManager != null) { m_NetManager.Disconnect(); } }
/// <summary> /// Back button method. Returns to main menu. /// </summary> public void OnBackClicked() { m_MenuUi.ShowDefaultPanel(); }
//Assigned to back button. Ends SP server session and leaves the SinglePlayer menu. public void OnBackClick() { m_NetManager.Disconnect(); m_MenuUi.ShowDefaultPanel(); }
private void Back() { m_NetManager.Disconnect(); m_MenuUi.ShowDefaultPanel(); }
private void Back() { m_MenuUi.ShowDefaultPanel(); }