void Start() { netMangaer = NetMangaer.Ins; netMangaer.Init(serverIp, port, 5); netMangaer.receivedSucceed += PushRecvMsg; netMangaer.sendSucceed += PushSendMsg; }
void Start() { netMangaer = NetMangaer.Ins; netMangaer.Init(serverIp, port, 5); netMangaer.connectSucceed += ConnectCallBack; netMangaer.receivedSucceed += MessageHandle; netMangaer.ConnectServer(); }