//-------------------------------------------------------------------------------- // CallbackAccountLogout //-------------------------------------------------------------------------------- public void CallbackAccountLogout(string[] result) { if (result[0] == Constants.INT_SUCCESS.ToString()) { Hide(); panelMain.Show(); } }
// ------------------------------------------------------------------------------- // CallbackAccountForgotPassword // ------------------------------------------------------------------------------- public void CallbackAccountForgotPassword(string[] result) { Debug.Log("CallbackAccountForgotPassword" + result[0]); if (result[0] == Constants.INT_FAILURE.ToString()) { panelMessage.Show(msgFail); } else if (result[0] == Constants.INT_CONFIRM.ToString()) { panelSecurityCode.Init(Constants.AccountActionType.ForgotPassword, CallbackConfirmAccountForgotPassword); } else if (result[0] == Constants.INT_SUCCESS.ToString()) { panelMessage.Show(msgSuccess); Hide(); panelMain.Show(); } }
//-------------------------------------------------------------------------------- // CallbackRegisterAccount //-------------------------------------------------------------------------------- private void CallbackRegisterAccount(string[] result) { if (result[0] == Constants.INT_FAILURE.ToString()) { panelMessage.Show(msgRegisterFail); } else if (result[0] == Constants.INT_CONFIRM.ToString()) { Hide(); panelMessage.Show(msgRegisterConfirm); panelMain.Show(); } else if (result[0] == Constants.INT_SUCCESS.ToString()) { Hide(); panelMessage.Show(msgRegisterSuccess); panelMain.Show(); } }
//-------------------------------------------------------------------------------- // CallbackCheckVersion //-------------------------------------------------------------------------------- private void CallbackCheckVersion(string[] result) { if (result[0] != Constants.INT_FAILURE.ToString()) { Hide(); panelMain.Show(); } else { panelMessage.Show(msgVersionFail); } }
//-------------------------------------------------------------------------------- // ClickCancel //-------------------------------------------------------------------------------- public void ClickCancel() { Hide(); panelMain.Show(); }