Kaynağa Gözat

套装部件

guodong 3 yıl önce
ebeveyn
işleme
f522b82a53

+ 0 - 4
GameClient/Assets/Game/HotUpdate/Views/Common/Controller/GetSuitItemController.cs

@@ -18,10 +18,6 @@ namespace GFGGame
 
         public static int TryShow(int itemId)
         {
-            if(ViewManager.isViewOpen(ViewName.GET_SUIT_ITEM_VIEW))
-            {
-                return 0;
-            }
             if(itemId < 0)
             {
                 int index = _waitingToShowList.IndexOf(itemId); 

+ 11 - 6
GameClient/Assets/Game/HotUpdate/Views/CommonGame/GetSuitItemVIew.cs

@@ -1,6 +1,7 @@
 using UI.CommonGame;
 using FairyGUI;
 using UnityEngine;
+using static UnityEditor.Progress;
 
 
 namespace GFGGame
@@ -52,13 +53,17 @@ namespace GFGGame
             {
                 _wrapper.wrapTarget = null;
             }
-            Timers.inst.CallLater((object param) =>
+            if(this.viewCom != null && this.viewCom.root == null)
             {
-                GetSuitItemController.TryShow(0);
-            });
-            GuideController.HideGuide();
-            GuideController.TryCompleteGuide(ConstGuideId.GET_SUIT_ITEM_VIEW_FIRST);
-            GuideController.TryCompleteGuide(ConstGuideId.GET_SUIT_ITEM_VIEW_FULL);
+
+                Timers.inst.CallLater((object param) =>
+                {
+                    GetSuitItemController.TryShow(0);
+                });
+                GuideController.HideGuide();
+                GuideController.TryCompleteGuide(ConstGuideId.GET_SUIT_ITEM_VIEW_FIRST);
+                GuideController.TryCompleteGuide(ConstGuideId.GET_SUIT_ITEM_VIEW_FULL);
+            }
         }
 
         private void OnClickBg()