/// <summary> /// 登录+ 设置昵称完成完成进入主页 /// </summary> private async void LoginCompleteEnterManor() { //await ChatTool.InitialChat(); HideAnimEffect(); if (!ChapterHelper.IsFinishSection()) { await ChapterHelper.NewUserJoinChapter(); } else { //关闭登录界面 UIComponent.RemoveUI(UIType.UILogin); //加载自己庄园 await StaticData.ToManorSelf(); StaticData.DataDot(Company.Cfg.DotEventId.LoginToLobby); //登录完成初始化角色 //HallRoleManager.Instance.InitRole(); } //加载本地存储数据 UniversalTool.LoadLocalSaveData(); RedDotManager.Initial(); //是否请求每日订单 if (StaticData.playerInfoData.userInfo.SectionId >= 1000) //1000 序章 { //请求每日订单 StaticData.RequestDeals(); } //打开公告界面 StaticData.OpenUISystemNotification(); //更新任务图标红点标记 2020/12/18 TaskPanelTool.InitialUpdateTaskTag(); //更新邮件图标红点标记 2020/12/21 MailboxTool.InitialUpdateTaskTag(); StaticData.SetSceneState(StaticData.SceneState.ManorSelf); List <int> GuideIdList = new List <int>(); if (StaticData.playerInfoData.userInfo.Guidance != null) { for (int i = 0; i < StaticData.playerInfoData.userInfo.Guidance.Count; i++) { GuideIdList.Add(StaticData.playerInfoData.userInfo.Guidance[i]); } } GuideCanvasComponent._instance.SetGuideFinishListId(GuideIdList); //关闭登录界面 UIComponent.RemoveUI(UIType.UILogin); }