Exemple #1
0
 private void EditorDisconnected(int playerID)
 {
     if (editorID == playerID)
     {
         editorID = -1;
     }
     DisconnectFromEditor();
     if (m_session != null)
     {
         m_session.Pause();
         m_session = null;
     }
 }
Exemple #2
0
        void EditorDisconnected(int playerID)
        {
            if (editorID == playerID)
            {
                editorID = -1;
            }
            DisconnectFromEditor();
#if !UNITY_EDITOR
            if (m_session != null)
            {
                m_session.Pause();
                m_session = null;
            }
#endif
        }
        void EditorDisconnected(int playerID)
        {
            if (editorID == playerID)
            {
                editorID = -1;
            }

            DisconnectFromEditor();
            Screen.sleepTimeout = SleepTimeout.SystemSetting;

                        #if !UNITY_EDITOR
            if (m_session != null)
            {
                m_session.Pause();
                m_session = null;
            }
                        #endif
        }