public void OnRegisterResponse(ReturenCode returenCode)
 {
     if (returenCode == ReturenCode.Success)
     {
         message.text = "注册成功,返回登录";
     }
     else
     {
         message.text = "用户名重复!";
     }
 }
Esempio n. 2
0
    public override void OnOperationResonse(OperationResponse response)
    {
        ReturenCode returenCode = (ReturenCode)response.ReturnCode;

        if (returenCode == ReturenCode.Success)
        {
            PhotonEngine.Username = Username;
        }

        loginPanel.OnLoginResponse(returenCode);
    }
 public void OnLoginResponse(ReturenCode returenCode)
 {
     if (returenCode == ReturenCode.Success)
     {
         //调转到先一个场景
         SceneManager.LoadScene("Game");
     }
     else
     {
         //显示提示信息
         message.text = "用户名或密码错误";
     }
 }
Esempio n. 4
0
    public override void OnOperationResonse(OperationResponse response)
    {
        ReturenCode returenCode = (ReturenCode)response.ReturnCode;

        registerPanel.OnRegisterResponse(returenCode);
    }