|
@@ -269,14 +269,17 @@ namespace GFGGame
|
|
|
string effectObjName = string.Format(DressUpUtil.FORMAT_EFFECT_OBJ_NAME, itemCfg.subType, layerId);
|
|
|
DressUpUtil.TryRemoveObj(parentObj, effectObjName);
|
|
|
//添加新的
|
|
|
- if (this.showAni)
|
|
|
+ if(!string.IsNullOrEmpty(this.resPath))
|
|
|
{
|
|
|
- DressUpUtil.AddAnimationObj(resPath, aniObjName, parentObj, sortingOrder);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- string ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType);
|
|
|
- DressUpUtil.AddSpriteObj(resPath, spritObjName, parentObj, sortingOrder, needSetMask);
|
|
|
+ if (this.showAni)
|
|
|
+ {
|
|
|
+ DressUpUtil.AddAnimationObj(resPath, aniObjName, parentObj, sortingOrder);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ string ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType);
|
|
|
+ DressUpUtil.AddSpriteObj(resPath, spritObjName, parentObj, sortingOrder, needSetMask);
|
|
|
+ }
|
|
|
}
|
|
|
if (!string.IsNullOrEmpty(effectResPath))
|
|
|
{
|