//确认当前服务器 public void TrySelectServer(Int32 ServerID) { SelectServerReq req = new SelectServerReq(); req.ServerID = ServerID; NetworkManager.Instance.Send(MessageID.MSG_SELECT_SERVER_REQ, req); }
private void OnReq_LoginServer(MessageRecv obj) { System.IO.MemoryStream ms = new System.IO.MemoryStream(obj.Data); SelectServerReq req = Serializer.Deserialize <SelectServerReq>(ms); SelectServerAck ack = new SelectServerAck(); NetworkManager.Instance.Send(MessageID.MSG_SELECT_SERVER_ACK, ack, 0, 0); }