zhaoyang 3 سال پیش
والد
کامیت
f322a84945
2فایلهای تغییر یافته به همراه10 افزوده شده و 2 حذف شده
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Views/UIView.cs
  2. 9 1
      GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/UIView.cs

@@ -125,7 +125,7 @@ namespace GFGGame
             }
             if (GuideController.IsGuide())
             {
-                UpdateToCheckGuide(null);
+                // UpdateToCheckGuide(null);
                 Timers.inst.AddUpdate(UpdateToCheckGuide);
             }
         }

+ 9 - 1
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -15,6 +15,7 @@ namespace GFGGame
         private static GComponent _bottomLayer;
         private static GComponent _topLayer;
         private static GComponent _guideLayer;
+        private static GComponent _modalLayer;
         private static GComponent _alertLayer;
         private static GComponent _debugLayer;
         private static GComponent _floatLayer;
@@ -41,6 +42,9 @@ namespace GFGGame
             _guideLayer = CreateLayer("GuideLayer");
             _guideLayer.sortingOrder = ConstSortingOrder.Guide;
 
+            _modalLayer = CreateLayer("ModalLayer");
+            _modalLayer.sortingOrder = ConstSortingOrder.Modal;
+
             _alertLayer = CreateLayer("AlertLayer");
             _alertLayer.sortingOrder = ConstSortingOrder.Alert;
             //debug层
@@ -64,6 +68,10 @@ namespace GFGGame
         {
             _guideLayer.AddChild(gObject);
         }
+        public static void AddChildToModalLayer(GObject gObject)
+        {
+            _modalLayer.AddChild(gObject);
+        }
         public static void AddChildToAlertLayer(GObject gObject)
         {
             _alertLayer.AddChild(gObject);
@@ -308,7 +316,7 @@ namespace GFGGame
         }
         public static bool CheckIsTopView(GComponent viewCom)
         {
-            // if (ViewManager.isViewOpen(typeof(GuideView).Name)) return false;
+            if (ViewManager.isViewOpen(typeof(GuideView).Name)) return false;
             if (viewCom.parent != null)
             {
                 int index = viewCom.parent.GetChildIndex(viewCom);