public bool OnAvatarStarUpRsp(AvatarStarUpRsp rsp) { if (rsp.get_retcode() != null) { GeneralDialogContext dialogContext = new GeneralDialogContext { type = GeneralDialogContext.ButtonType.SingleButton, title = LocalizationGeneralLogic.GetText("Menu_Title_Tips", new object[0]), desc = LocalizationGeneralLogic.GetNetworkErrCodeOutput(rsp.get_retcode(), new object[0]) }; Singleton <MainUIManager> .Instance.ShowDialog(dialogContext, UIType.Any); } return(false); }
private bool OnAvatarStarUpRsp(AvatarStarUpRsp rsp) { if (rsp.get_retcode() != null) { GeneralDialogContext dialogContext = new GeneralDialogContext { type = GeneralDialogContext.ButtonType.SingleButton, title = LocalizationGeneralLogic.GetText("Menu_Title_Tips", new object[0]), desc = LocalizationGeneralLogic.GetNetworkErrCodeOutput(rsp.get_retcode(), new object[0]) }; Singleton <MainUIManager> .Instance.ShowDialog(dialogContext, UIType.Any); } else { Singleton <ApplicationManager> .Instance.StartCoroutine(this.PostLevelUpAudioCoroutine(this.avatarData.avatarID)); Singleton <MainUIManager> .Instance.ShowDialog(new AvatarPromotionDialogContext(this.avatarData), UIType.Any); UIUtil.UpdateAvatarSkillStatusInLocalData(this.avatarData); this.SetupSkillTab(); } return(false); }