void initManagement() { Screen.SetResolution(m_nWidth, m_nHeight, false); m_fGameTime = 0; if (Directory.GetDirectories(".\\", "log", SearchOption.TopDirectoryOnly).Length <= 0) { Directory.CreateDirectory(".\\log"); } // init error log writer if (m_uiMGR) { m_uiMGR.init(); } //m_ingameMGR.init(); if (m_resourceMGR) { m_resourceMGR.init(); } if (m_inputKeyMGR) { m_inputKeyMGR.init(); } try { if (m_socketMGR) { m_socketMGR.init(); connect_loginServer(); } } catch (Exception ex) { writeErrorLog(ex.Message); } m_bInit = true; }