|
@@ -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);
|