예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
        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();
            }
        }
예제 #4
0
 /// <summary>
 /// Back button method. Returns to main menu.
 /// </summary>
 public void OnBackClicked()
 {
     m_MenuUi.ShowDefaultPanel();
 }
예제 #5
0
 //Assigned to back button. Ends SP server session and leaves the SinglePlayer menu.
 public void OnBackClick()
 {
     m_NetManager.Disconnect();
     m_MenuUi.ShowDefaultPanel();
 }
예제 #6
0
 private void Back()
 {
     m_NetManager.Disconnect();
     m_MenuUi.ShowDefaultPanel();
 }
예제 #7
0
 private void Back()
 {
     m_MenuUi.ShowDefaultPanel();
 }