public bool Init() { if (null != m_thread) { Debug.LogWarning("NetController already inited,repeated init ignored!!!"); return(false); } m_thread = new NetThread(); m_thread.Start(); m_reconnectingPanel = CSBridge.UIRoot().FindChild("panel_reconnecting").gameObject; if (null == m_reconnectingPanel) { Debug.Log("NetController init,reconnectingpanel not found"); } Debug.Log("NetController init ok,netthread start working!!!"); return(true); }
public bool Init() { if (null != m_thread) { Utility.LogWarning("NetMgr already inited,repeated init ignored!!!"); return(false); } m_thread = new NetThread(); m_thread.Start(); m_reconnectingPanel = GlobalRef.UIRoot.FindChild("panel_reconnecting").gameObject; if (null == m_reconnectingPanel) { Utility.Log("NetMgr init,reconnectingpanel not found"); } Utility.Log("NetMgr init ok,netthread start working!!!"); return(true); }