Example #1
0
    public void TryChangeMount(int mountID)
    {
        ReqSetMount req = new ReqSetMount();

        req.MountID = mountID;
        NetworkManager.Instance.Send <ReqSetMount>(MessageID.MSG_REQ_SETMOUNT, req);
    }
Example #2
0
    private void OnReq_SetMount(MessageRecv obj)
    {
        System.IO.MemoryStream ms  = new System.IO.MemoryStream(obj.Data);
        ReqSetMount            req = Serializer.Deserialize <ReqSetMount>(ms);

        AckSetMount ack = new AckSetMount();

        ack.MountID = req.MountID;
        NetworkManager.Instance.Send(MessageID.MSG_ACK_SETMOUNT, ack, 0, 0);
    }