Unity SDK_第三方账户关联
账户关联功能
public enum LinkingType { GOOGLEPLAY, GAMECENTER, GOOGLE, FACEBOOK, NAVER, TWITTER, LINE, APPLE } void GamePot.createLinking(NCommon.LinkingType.XXXXX); /// 取消账户关联 public void onCreateLinkingCancel() { // 用户取消账户关联 } /// 账户关联成功 public void onCreateLinkingSuccess(NUserInfo userInfo) { } /// 账户关联失败 public void onCreateLinkingFailure(NError error) { // 请使用error.message显示错误消息。 }public enum LinkingType { GOOGLEPLAY, GAMECENTER, GOOGLE, FACEBOOK, NAVER, TWITTER, LINE, APPLE } void GamePot.createLinking(NCommon.LinkingType.XXXXX, GamePotCallbackDelegate.CB_CreateLinking); GamePot.createLinking(NCommon.LinkingType.XXXXX, (resultState, userInfo, error) => { switch (resultState) { case NCommon.ResultLinking.SUCCESS: // 账户关联成功 break; case NCommon.ResultLinking.CANCELLED: // 取消账户关联 break; case NCommon.ResultLinking.FAILED: // 账户关联失败 break; default: break; } });
关联列表确认功能
解除关联功能
Last updated