private static void OnConfirmMergeExistAccount(ConfirmMergeExistAccount2Client e, object[] args) { if (OnConfirmMergeExistAccountCallback != null) { OnConfirmMergeExistAccountCallback(e); } }
private static void SDKLoginCallBack(OnLoginInfo info) { isWaiting = false; SDKManager.LoginCallBack -= SDKLoginCallBack; if (info.isSuccess) { AccountMergeInfo2Server msg = AccountMergeInfo2Server.GetMessage(info.loginPlatform, info.accountId, info.password); JsonMessageProcessingController.SendMessage(msg); } else { if (OnConfirmMergeExistAccountCallback != null) { ConfirmMergeExistAccount2Client msg = new ConfirmMergeExistAccount2Client(); msg.code = -1; msg.loginType = info.loginPlatform; OnConfirmMergeExistAccountCallback(msg); } } }
private static void OnConfirmMergeExistAccount(ConfirmMergeExistAccount2Client e, object[] args) { if (e.code == 0) { if (areadyBindPlatform.Contains(e.loginType)) { Debug.LogError("已包含绑定平台:" + e.loginType); } else { areadyBindPlatform.Add(e.loginType); } } else { Debug.LogError("绑定出错"); } if (OnConfirmMergeExistAccountCallback != null) { OnConfirmMergeExistAccountCallback(e); } }