Пример #1
0
    public void TryUpgradePartner(int id)
    {
        ReqUpgradePartner req = new ReqUpgradePartner();

        req.ID = id;
        NetworkManager.Instance.Send <ReqUpgradePartner>(MessageID.MSG_REQ_UPGRADE_PARTNER, req);
    }
Пример #2
0
    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);
    }