فهرست منبع

未激活动画不设置深度

zhaoyang 2 سال پیش
والد
کامیت
b36d38836a

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Data/PhotographUtil.cs

@@ -181,7 +181,7 @@ namespace GFGGame
 
             for (int i = 0; i < itemGameObjs.Count; i++)
             {
-                ChangeLayer(itemGameObjs[i], i * 100, state);
+                ChangeLayer(itemGameObjs[i], i * 300, state);
             }
 
         }
@@ -233,7 +233,7 @@ namespace GFGGame
             }
 
             var render = parentObj.GetComponentInChildren<CubismRenderController>();
-            if (render != null)
+            if (render != null && render.gameObject.activeSelf == true)
             {
                 render.SortingOrder = render.SortingOrder + changeLayer;
             }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/DressUp/DressUpUtil.cs

@@ -371,7 +371,7 @@ namespace GFGGame
                     render = childObj.GetComponent<CubismRenderController>();
                 }
             }
-            if (render != null)
+            if (render != null && render.gameObject.activeSelf == true)
             {
                 render.SortingOrder = sortingOrder;
             }