public void StopServer() { m_isStarted = false; if (m_thread != null) { m_thread.Join(); m_thread = null; } // 서버 실행을 정지. if (m_tcp != null) { m_tcp.StopServer(); } if (m_udp != null) { m_udp.StopServer(); } m_notifier.Clear(); m_isServer = false; m_eventOccured = false; Debug.Log("Server stopped."); }