Example #1
0
    private void RegisterBtnClickAck(object o)
    {
        RegisterAccountAck ack = new RegisterAccountAck();

        ack.MergeFrom((RegisterAccountAck)o);   //反序列化
        if (ack.Result == "OK")
        {
            Debug.Log("注册成功");
            Debug.Log(ack.RoleID);
        }
        else
        {
            Debug.Log("注册失败:" + ack.Result);
        }
    }
Example #2
0
    public void RegistBtnClickAck(object o)
    {
        RegisterAccountAck ack = new RegisterAccountAck();

        ack.MergeFrom((RegisterAccountAck)o);
        if (ack.Result == "OK")
        {
            Debug.Log("注册成功");
            Debug.Log(ack.RoleID);
            msgBox.textDic["Text_Tip"].text = "注册成功";
        }
        else
        {
            Debug.Log("注册失败" + ack.Result);
            msgBox.textDic["Text_Tip"].text = "注册失败";
        }
    }