zhaoyang 3 lat temu
rodzic
commit
e574c71282

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Controller/GuideController.cs

@@ -65,7 +65,7 @@ namespace GFGGame
 
         public static bool TryGuide(GObject target, string guideKey, int index, string guideStr = null, int listIndex = -1, bool checkPriorIndex = true, int yTxt = 0, float devWidth = 0, float devHeight = 0, bool showAni = true, bool showEffect = true, bool isOptionalGuide = false)
         {
-            if (ViewManager.isViewOpen(typeof(RoleLvUpView).Name)) return false;
+            // if (ViewManager.isViewOpen(typeof(RoleLvUpView).Name)) return false;
             GuideCfg cfg = GuideCfgArray.Instance.GetCfg(guideKey);
             if (GuideDataManager.currentGuideId != 0 && GuideDataManager.currentGuideId != cfg.id) return false;
 

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/RoleDataManager.cs

@@ -115,7 +115,7 @@ namespace GFGGame
         private static void CheckUpLv(object param)
         {
             if (ViewManager.isViewOpen(typeof(FunctionOpenView).Name)) return;//等功能开启展示完成后在展示角色升级
-            if (ViewManager.isViewOpen(typeof(GuideView).Name)) return;
+            // if (ViewManager.isViewOpen(typeof(GuideView).Name)) return;
             if (GRoot.inst.GetTopWindow() == null)
             {
                 OpenRoleLvUpView(null);

+ 4 - 0
GameClient/Assets/Game/HotUpdate/Views/Guide/GuideView.cs

@@ -47,6 +47,10 @@ namespace GFGGame
             _ui.m_rectFrame.target.AddRelation(_ui.m_mask.m_guideArea, RelationType.Top_Top);
             _ui.m_mask.target.onClick.Add(() =>
             {
+                if (ViewManager.isViewOpen(typeof(RoleLvUpView).Name))
+                {
+                    ViewManager.Hide(typeof(RoleLvUpView).Name);
+                }
                 if (isOptionalGuide) this.OnClickTarget();
             });
             string resPath0 = ResPathUtil.GetViewEffectPath("ui_yd/ui_yd_y", "ui_yd_y");