Beispiel #1
0
        protected override byte[] BuildResponsePack()
        {
            responsePack          = new Response10000Pack();
            responsePack.UserID   = UserID;
            responsePack.UserName = UserName;

            return(ProtoBufUtils.Serialize(responsePack));
        }
Beispiel #2
0
    protected override void DecodePackage(NetReader reader)
    {
        requestPack = ProtoBufUtils.Deserialize <Response10000Pack>(reader.Buffer);

        UnityEngine.Debug.Log(string.Format("ok, userid:{0}", requestPack.UserID));
    }