public void logoutNotify(string args)
    {
        ParseReceiveParams(args);

        U3dGfanSender.ShowToast("logoutNotify finishi...IsSuccess " + IsSuccess());
        ThirdPartyPlatform.OnLogout(IsSuccess());
    }
示例#2
0
    void OnLogout(JsonData json)
    {
        int code = (int)json[SDKConstants.KEY_ERROR_CODE];

        if (code == NdErrorCode.ND_COM_PLATFORM_SUCCESS)
        {
            ThirdPartyPlatform.OnLogout(true);
        }
    }
示例#3
0
    private void OnLogout(int code, string msg)
    {
        log(string.Format("UCCallbackMessage - OnLogout: code={0}, msg={1}", code, msg));

        ////输出退出登录结果到页面(接入后删除)
        //GameMain.setSdkMessage (string.Format ("UCCallbackMessage - OnLogout: code={0}, msg={1}", code, msg));

        if (code == UCStatusCode.SUCCESS)
        {
            //当前登录用户已退出,应将游戏切换到未登录的状态。

            UCConfig.logined = false;

            //UCGameSdk.destroyFloatButton ();
            //DemoControl.Restart();
            ThirdPartyPlatform.OnLogout(true);
        }
        else
        {
            //unknown error
            log(string.Format("unknown error: code={0}, msg={1}", code, msg));
        }
    }
示例#4
0
    void OnLogout(JsonData json)
    {
        int code = (int)json[SDKConstants.KEY_ERROR_CODE];

        switch (code)
        {
        case MiErrorCode.MI_XIAOMI_GAMECENTER_ERROR_LOGINOUT_FAIL:
            // 注销失败
            ThirdPartyPlatform.OnLogout(false);
            break;

        case MiErrorCode.MI_XIAOMI_GAMECENTER_ERROR_LOGINOUT_SUCCESS:
            // 注销成功
            ThirdPartyPlatform.OnLogout(true);
            break;

        case MiErrorCode.MI_XIAOMI_GAMECENTER_ERROR_ACTION_EXECUTED:
            //操作正在进行中
            break;

        default:
            break;
        }
    }
示例#5
0
 void OnLogout(string args)
 {
     ParseReceiveParams(args);
     ThirdPartyPlatform.OnLogout(IsSuccess());
 }
 public void logoutNotify(string args)
 {
     ParseReceiveParams(args);
     ThirdPartyPlatform.OnLogout(IsSuccess());
 }