|
@@ -14,6 +14,7 @@ namespace GFGGame
|
|
private static Dictionary<string, UIView> _viewDic;
|
|
private static Dictionary<string, UIView> _viewDic;
|
|
private static GComponent _bottomLayer;
|
|
private static GComponent _bottomLayer;
|
|
private static GComponent _topLayer;
|
|
private static GComponent _topLayer;
|
|
|
|
+ private static GComponent _debugLayer;
|
|
private static Dictionary<string, object[]> _goBackDatas = new Dictionary<string, object[]>();
|
|
private static Dictionary<string, object[]> _goBackDatas = new Dictionary<string, object[]>();
|
|
|
|
|
|
public static void Init()
|
|
public static void Init()
|
|
@@ -31,7 +32,9 @@ namespace GFGGame
|
|
//��ʼ����ͼ������
|
|
//��ʼ����ͼ������
|
|
_bottomLayer = CreateLayer("BottomLayer");
|
|
_bottomLayer = CreateLayer("BottomLayer");
|
|
_topLayer = CreateLayer("TopLayer");
|
|
_topLayer = CreateLayer("TopLayer");
|
|
- _topLayer.sortingOrder = ConstSortingOrder.TOP;
|
|
|
|
|
|
+ //debug层
|
|
|
|
+ _debugLayer = CreateLayer("DebugLayer");
|
|
|
|
+ _debugLayer.sortingOrder = ConstSortingOrder.Debug;
|
|
SetMaskAlpha(0.6f);
|
|
SetMaskAlpha(0.6f);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -45,6 +48,11 @@ namespace GFGGame
|
|
_topLayer.AddChild(gObject);
|
|
_topLayer.AddChild(gObject);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static void AddChildToDebugLayer(GObject gObject)
|
|
|
|
+ {
|
|
|
|
+ _debugLayer.AddChild(gObject);
|
|
|
|
+ }
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// ��ʾһ����ͼ
|
|
/// ��ʾһ����ͼ
|
|
/// </summary>
|
|
/// </summary>
|