Example #1
0
    protected override void DecodePackage(NetReader reader)
    {
        LogicMsg.LoginResp resp = LogicMsg.LoginResp.Parser.ParseFrom(reader.Buffer);

        m_result              = new ActionResult();
        m_result["Result"]    = resp.Result;
        m_result["AccountId"] = resp.AccountId;
        Debug.Log("resp.Result: " + resp.Result + " resp.AccountId: " + resp.AccountId);
    }
Example #2
0
    protected override void DecodePackage(NetReader reader)
    {
        LogicMsg.LoginResp resp = LogicMsg.LoginResp.Parser.ParseFrom(reader.Buffer);

        foreach (byte b in reader.Buffer)
        {
            Debug.Log(b);
        }

        Debug.Log("resp.AccountId: " + resp.AccountId + " resp.result: " + resp.Result);
    }