|
@@ -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);
|