private async void OnEnterManor() { //功能是否开启 if (!StaticData.IsOpenFunction(10013)) { return; } UIComponent.HideUI(UIType.UIFriend); //StaticData.OpenFriend(true); UIManorComponent uiManorComponent = UIComponent.GetComponentHaveExist <UIManorComponent>(UIType.UIManor); if (uiManorComponent == null) { await UIComponent.CreateUIAsync(UIType.UIManor); uiManorComponent = UIComponent.GetComponentHaveExist <UIManorComponent>(UIType.UIManor); } StaticData.curFriendStealInfo = new FriendStealInfo() { nickname = scFriendInfo.FriendName, headIcon = scFriendInfo.FriendImage, playerLevelAndCurrExp = StaticData.GetPlayerLevelAndCurrExp(scFriendInfo.FriendExperience) }; //新手引导完成 if (StaticData.isOpenGuide && GuideCanvasComponent._instance != null && GuideCanvasComponent._instance.isCurrStepGuiding) { GuideCanvasComponent._instance.SetLittleStepFinish(); } uiManorComponent.OnButtonEnterFriendManor(scFriendInfo.Uid); }
/// <summary> /// 关闭界面进入好友庄园 /// </summary> /// <param name="friendID"></param> public void CloseAndEnterFriendManor(long friendID) { OnClickClose(); UIManorComponent uiManorComponent = UIComponent.GetComponentHaveExist <UIManorComponent>(UIType.UIManor); uiManorComponent.OnButtonEnterFriendManor(friendID); }
private void OnEnterManor() { UIManorComponent uiManorComponent = UIComponent.GetComponentHaveExist <UIManorComponent>(UIType.UIManor); StaticData.curFriendStealInfo = curFriendStealInfo; uiManorComponent.OnButtonEnterFriendManor(curFriendStealInfo.uid); if (StaticData.isOpenGuide && GuideCanvasComponent._instance != null && GuideCanvasComponent._instance.isCurrStepGuiding) { GuideCanvasComponent._instance.SetLittleStepFinish(); } }