public void findPassword()
 {
     Debug.Log("发送找回密码邮件");
     KBEngine.
     KBEngineApp.app.resetPassword(accountNameInput.text);
     MessagePanelController.openMessagePanel(canvas, "已发送邮件,请根据提示操作");
 }
Exemplo n.º 2
0
 public void onConnectionState(string state)
 {
     if (state != "")
     {
         Debug.LogFormat(state);
         MessagePanelController.openMessagePanel(canvas, state);
     }
 }
 public void register()
 {
     if (emailInput.text == "")
     {
         MessagePanelController.openMessagePanel(canvas, "邮箱不允许为空");
     }
     else
     {
         KBEngine.Event.fireIn("createAccount", userNameInput.text, passwordInput.text, System.Text.Encoding.UTF8.GetBytes("PC"));
     }
 }
 public void onCreateAccountResult(UInt16 resultCode, byte[] datas)
 {
     if (resultCode != 0)
     {
         Debug.LogFormat("注册失败,错误码:{0},原因:{1}", resultCode, KBEngineApp.app.serverErr(resultCode));
         MessagePanelController.openMessagePanel(canvas, "注册失败,错误码:" + resultCode + ",原因:" + KBEngineApp.app.serverErr(resultCode));
     }
     else
     {
         Debug.LogFormat("注册成功,原因:{0}", KBEngineApp.app.serverErr(resultCode));
         KBEngine.Event.fireIn("login", userNameInput.text, passwordInput.text, System.Text.Encoding.UTF8.GetBytes("PC"));
     }
 }
 public void onDisconnected()
 {
     MessagePanelController.openMessagePanel(canvas, "链接已断开");
     KBEngine.Event.registerOut("onCloseMessagePanel", this, "onCloseMessagePanel");
 }
Exemplo n.º 6
0
 public void onReqJoinRoomFailed(ushort retcode)
 {
     Debug.LogFormat("加入房间失败,原因:{0}", KBEngineApp.app.serverErr(retcode));
     MessagePanelController.openMessagePanel(canvas, "加入房间失败,原因:" + KBEngineApp.app.serverErr(retcode));
 }
Exemplo n.º 7
0
 public void onEditRoomInfoFailed(ushort retcode)
 {
     Debug.LogFormat("修改房间信息失败,原因:{0}", KBEngineApp.app.serverErr(retcode));
     MessagePanelController.openMessagePanel(canvas, "修改房间信息失败,原因:" + KBEngineApp.app.serverErr(retcode));
 }
Exemplo n.º 8
0
 public void onLoginBaseappFailed(UInt16 failedcode)
 {
     Debug.LogFormat("loginBaseapp is failed(登陆网关失败), err=" + KBEngineApp.app.serverErr(failedcode));
     MessagePanelController.openMessagePanel(canvas, "登陆网关失败," + "原因:" + KBEngineApp.app.serverErr(failedcode));
 }
Exemplo n.º 9
0
 public void onLoginFailed(UInt16 failedCode)
 {
     Debug.LogFormat("登陆失败,错误码:{0},原因:{1}", failedCode, KBEngineApp.app.serverErr(failedCode));
     MessagePanelController.openMessagePanel(canvas, "登陆失败,错误码:" + failedCode + ",原因:" + KBEngineApp.app.serverErr(failedCode));
 }
Exemplo n.º 10
0
 public void isBan(string startTime, string finishTime)
 {
     Debug.LogFormat("帐号已被冻结,期限:{0}~{1}", startTime, finishTime);
     MessagePanelController.openMessagePanel(canvas, "帐号已被冻结,期限:" + startTime + "~" + finishTime);
 }
Exemplo n.º 11
0
 public void onSetNameFailed(byte retcode, string name)
 {
     Debug.LogFormat("设定昵称:{0} 失败,原因:{1}", name, KBEngineApp.app.serverErr(retcode));
     MessagePanelController.openMessagePanel(canvas, "设定昵称:" + name + " 失败,原因:" + KBEngineApp.app.serverErr(retcode));
 }
 public void onLoginSuccessfully()
 {
     Debug.LogFormat("正在绑定邮箱:{0}", emailInput.text);
     KBEngineApp.app.bindAccountEmail(emailInput.text);
     MessagePanelController.openMessagePanel(canvas, "注册成功");
 }