소스 검색

换装位置重置

guodong 1 년 전
부모
커밋
6cf1850909
2개의 변경된 파일5개의 추가작업 그리고 9개의 파일을 삭제
  1. 5 5
      GameClient/Assets/Game/HotUpdate/DressUp/DressUpLayerOperation.cs
  2. 0 4
      GameClient/Assets/Game/HotUpdate/DressUp/DressUpUtil.cs

+ 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();