guodong 3 жил өмнө
parent
commit
4f347e1afd

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/ViewGlobal.cs

@@ -4,7 +4,7 @@ using UnityEngine;
 
 
 namespace GFGGame
 namespace GFGGame
 {
 {
-    public class ViewGlobal : MonoBehaviour
+    public class ViewGlobal
     {
     {
         private static UI_ComHolder comHolder;
         private static UI_ComHolder comHolder;
         private static GameObject _gameObj;
         private static GameObject _gameObj;
@@ -16,7 +16,7 @@ namespace GFGGame
             {
             {
                 comHolder = UI_ComHolder.Create();
                 comHolder = UI_ComHolder.Create();
                 comHolder.target.touchable = false;
                 comHolder.target.touchable = false;
-                ViewManager.AddChildToTopLayer(comHolder.target);
+                ViewManager.AddChildToFloatLayer(comHolder.target);
                 comHolder.target.SetPosition(-100, -100, 0);
                 comHolder.target.SetPosition(-100, -100, 0);
 
 
                 string resPath = ResPathUtil.GetViewEffectPath("ui_dj", "ui_dj");
                 string resPath = ResPathUtil.GetViewEffectPath("ui_dj", "ui_dj");