|
@@ -14,7 +14,11 @@ namespace GFGGame
|
|
|
private static Dictionary<string, UIView> _viewDic;
|
|
|
private static GComponent _bottomLayer;
|
|
|
private static GComponent _topLayer;
|
|
|
+ private static GComponent _guideLayer;
|
|
|
+ private static GComponent _alertLayer;
|
|
|
private static GComponent _debugLayer;
|
|
|
+ private static GComponent _floatLayer;
|
|
|
+
|
|
|
private static Dictionary<string, object[]> _goBackDatas = new Dictionary<string, object[]>();
|
|
|
|
|
|
public static void Init()
|
|
@@ -32,9 +36,18 @@ namespace GFGGame
|
|
|
//��ʼ����ͼ������
|
|
|
_bottomLayer = CreateLayer("BottomLayer");
|
|
|
_topLayer = CreateLayer("TopLayer");
|
|
|
+ _topLayer.sortingOrder = ConstSortingOrder.TOP;
|
|
|
+
|
|
|
+ _guideLayer = CreateLayer("GuideLayer");
|
|
|
+ _guideLayer.sortingOrder = ConstSortingOrder.Guide;
|
|
|
+
|
|
|
+ _alertLayer = CreateLayer("AlertLayer");
|
|
|
+ _alertLayer.sortingOrder = ConstSortingOrder.Alert;
|
|
|
//debug层
|
|
|
_debugLayer = CreateLayer("DebugLayer");
|
|
|
_debugLayer.sortingOrder = ConstSortingOrder.Debug;
|
|
|
+ _floatLayer = CreateLayer("FloatLayer");
|
|
|
+ _floatLayer.sortingOrder = ConstSortingOrder.Float;
|
|
|
SetMaskAlpha(0.6f);
|
|
|
}
|
|
|
|
|
@@ -47,11 +60,23 @@ namespace GFGGame
|
|
|
{
|
|
|
_topLayer.AddChild(gObject);
|
|
|
}
|
|
|
+ public static void AddChildToGuideLayer(GObject gObject)
|
|
|
+ {
|
|
|
+ _guideLayer.AddChild(gObject);
|
|
|
+ }
|
|
|
+ public static void AddChildToAlertLayer(GObject gObject)
|
|
|
+ {
|
|
|
+ _alertLayer.AddChild(gObject);
|
|
|
+ }
|
|
|
|
|
|
public static void AddChildToDebugLayer(GObject gObject)
|
|
|
{
|
|
|
_debugLayer.AddChild(gObject);
|
|
|
}
|
|
|
+ public static void AddChildToFloatLayer(GObject gObject)
|
|
|
+ {
|
|
|
+ _floatLayer.AddChild(gObject);
|
|
|
+ }
|
|
|
|
|
|
/// <summary>
|
|
|
/// ��ʾһ����ͼ
|