فهرست منبع

工作室引导中点击按钮会卡死

zhaoyang 3 سال پیش
والد
کامیت
91de3aab4e
1فایلهای تغییر یافته به همراه13 افزوده شده و 0 حذف شده
  1. 13 0
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioView.cs

+ 13 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioView.cs

@@ -47,6 +47,7 @@ namespace GFGGame
         protected override void OnHide()
         protected override void OnHide()
         {
         {
             base.OnHide();
             base.OnHide();
+            TryCompleteGuide();
         }
         }
 
 
         private void OnClickBtnBack()
         private void OnClickBtnBack()
@@ -60,6 +61,7 @@ namespace GFGGame
 
 
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioMetalView).FullName, true)) return;
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioMetalView).FullName, true)) return;
             ViewManager.Show<StudioMetalView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
             ViewManager.Show<StudioMetalView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
+            this.Hide();
         }
         }
         private void OnCliclComFabric()
         private void OnCliclComFabric()
         {
         {
@@ -67,6 +69,8 @@ namespace GFGGame
 
 
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioFabricView).FullName, true)) return;
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioFabricView).FullName, true)) return;
             ViewManager.Show<StudioFabricView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
             ViewManager.Show<StudioFabricView>(new object[] { 0, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
+            this.Hide();
+
         }
         }
         private void OnComProperty()
         private void OnComProperty()
         {
         {
@@ -74,6 +78,8 @@ namespace GFGGame
 
 
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioPropertyView).FullName, true)) return;
             if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioPropertyView).FullName, true)) return;
             ViewManager.Show<StudioPropertyView>(new object[] { 1, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
             ViewManager.Show<StudioPropertyView>(new object[] { 1, 0 }, new object[] { typeof(StudioView).Name, this.viewData });
+            this.Hide();
+
         }
         }
         private void OnClickComFilling()
         private void OnClickComFilling()
         {
         {
@@ -87,5 +93,12 @@ namespace GFGGame
             GuideController.TryCompleteGuide(ConstGuideId.STUDIO_OPEN, 2);
             GuideController.TryCompleteGuide(ConstGuideId.STUDIO_OPEN, 2);
 
 
         }
         }
+
+        protected override void TryCompleteGuide()
+        {
+            GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.STUDIO_OPEN);
+            GuideController.TryCompleteGuideIndex(cfg.id, 2);
+            GuideController.TryCompleteGuide(ConstGuideId.STUDIO_OPEN, 2);
+        }
     }
     }
 }
 }