浏览代码

点击特效层次

guodong 3 年之前
父节点
当前提交
4f347e1afd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      GameClient/Assets/Game/HotUpdate/Views/ViewGlobal.cs

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

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