public void LoginCLick() { SM = new SocketManage(HostText.text, int.Parse(PortText.text)); SM.Init(); StartCoroutine(StartLogin()); }
static void Main(string[] args) { try { SocketManage socketManage = new SocketManage(); socketManage.Init(); Console.ReadKey(); } catch (Exception e) { LogHelper.Error("socket启动失败", e); } }