public void TryUpgradePartner(int id) { ReqUpgradePartner req = new ReqUpgradePartner(); req.ID = id; NetworkManager.Instance.Send <ReqUpgradePartner>(MessageID.MSG_REQ_UPGRADE_PARTNER, req); }
private void OnReq_UpgradePartner(MessageRecv obj) { System.IO.MemoryStream ms = new System.IO.MemoryStream(obj.Data); ReqUpgradePartner req = Serializer.Deserialize <ReqUpgradePartner>(ms); AckUpgradePartner ack = new AckUpgradePartner(); ack.ID = req.ID; NetworkManager.Instance.Send(MessageID.MSG_ACK_UPGRADE_PARTNER, ack, 0, 0); }