Explorar el Código

换装位置重置

guodong hace 1 año
padre
commit
6cf1850909

+ 5 - 5
GameClient/Assets/Game/HotUpdate/DressUp/DressUpLayerOperation.cs

@@ -294,13 +294,13 @@ namespace GFGGame
                 else
                 {
                     DressUpUtil.AddSpriteObj(this.resPath, spritObjName, parentObj, sortingOrder, needSetMask);
-                    if (removeBodyAni)
-                    {
-                        parentObj.transform.localPosition = Vector3.zero;
-                        parentObj.transform.localRotation = Quaternion.identity;
-                    }
                 }
             }
+            if(!this.showAni)
+            {
+                parentObj.transform.localPosition = Vector3.zero;
+                parentObj.transform.localRotation = Quaternion.identity;
+            }
             if (!string.IsNullOrEmpty(effectResPath))
             {
                 DressUpUtil.TryAddEffectObj(effectResPath, effectObjName, parentObj, sortingOrder);

+ 0 - 4
GameClient/Assets/Game/HotUpdate/DressUp/DressUpUtil.cs

@@ -226,10 +226,6 @@ namespace GFGGame
                 }
 
             }
-            if (!string.IsNullOrEmpty(resPath) && !YooAssets.CheckResExist(resPath))
-            {
-                return null;
-            }
             DressUpLayerOperation handler = new DressUpLayerOperation(parentObj, needSetMask, showAni, resPath, effectResPath);
             handler.InitBody();
             handler.Begin();