public void Dispose() { m_coroutine.Dispose(); m_coroutine = null; m_http.Dispose(); m_http = null; m_instance = null; }
lhServerControlManager() { m_dataList = new List <ServerData>(); m_coroutine = lhCoroutine.GetInstance(); m_http = lhHttp.GetInstance(); if (System.IO.File.Exists(m_filePath)) { string defineStr = System.IO.File.ReadAllText(m_filePath, System.Text.Encoding.UTF8); if (!string.IsNullOrEmpty(defineStr)) { var json = lhJson.Parse(defineStr) as JsonArray; foreach (var j in json) { m_dataList.Add(new ServerData((JsonObject)j)); } } } }