public void SDKLoginFail() { UIEventListener.Get(this.mask.gameObject).onClick = new UIEventListener.VoidDelegate(this.OnClickMask); this.mask.gameObject.SetActive(true); this.WarnText.gameObject.SetActive(true); if (GlobalSettings.isLoginByAnySDK && InitAnySDK.getInstance().anySDKUser.isLogined() && Singleton <LoginView_New> .Instance.gameObject != null && Singleton <LoginView_New> .Instance.gameObject.active) { this.mask.gameObject.SetActive(false); this.coroutineManager.StartCoroutine(InitSDK.instance.TryLoginByChannelId(AnySDK.getInstance().getChannelId(), InitAnySDK.getInstance().anySDKUser.getUserID()), true); } }
private void OnKickOut(MobaMessage msg) { NetWorkHelper.Instance.Enable(false); CtrlManager.ShowMsgBox("重复登录", "英雄,您在别的地方登录了,传送门将关闭", delegate { if (GlobalSettings.isLoginByAnySDK) { InitAnySDK.getInstance().logout(); } else if (GlobalSettings.isLoginByHoolaiSDK) { InitSDK.instance.SDKLogout(true); } else { GlobalObject.ReStartGame(); } }, PopViewType.PopOneButton, "确定", "取消", null); }