|
@@ -55,13 +55,13 @@ namespace GFGGame
|
|
|
string value = typeof(ItemCfg).GetField(layerName).GetValue(itemCfg).ToString();
|
|
|
// string res = value == "n" ? itemCfg.res : string.Format("{0}_{1}", itemCfg.res, value);
|
|
|
|
|
|
- string res = DressUpUtil.GetDressUpItemLayerRes(itemCfg, layer);
|
|
|
- string resPath = ResPathUtil.GetDressUpPath(res);
|
|
|
- var effPath = ResPathUtil.GetDressUpEffectPath(itemCfg.res);
|
|
|
- if (!VEngine.Versions.Contains(resPath) && VEngine.Versions.Contains(effPath))
|
|
|
- {
|
|
|
- AddOnlyEffItemToScene(sceneObject, parentGameObj, itemCfg.id, layer);
|
|
|
- }
|
|
|
+ // string res = DressUpUtil.GetDressUpItemLayerRes(itemCfg, layer);
|
|
|
+ // string resPath = ResPathUtil.GetDressUpPath(res);
|
|
|
+ // var effPath = ResPathUtil.GetDressUpEffectPath(itemCfg.res);
|
|
|
+ // if (!VEngine.Versions.Contains(resPath) && VEngine.Versions.Contains(effPath))
|
|
|
+ // {
|
|
|
+ // AddOnlyEffItemToScene(sceneObject, parentGameObj, itemCfg.id, layer);
|
|
|
+ // }
|
|
|
|
|
|
AddItemGameObjectToList(parentGameObj, setLayer);
|
|
|
}
|
|
@@ -85,7 +85,7 @@ namespace GFGGame
|
|
|
{
|
|
|
gameObject.GetComponent<SpriteRenderer>().enabled = false;
|
|
|
DressUpUtil.AddItem(itemId, sceneObj, false, true, gameObject, resLayer);
|
|
|
- gameObject.transform.GetChild(0).localPosition = gameObject.transform.GetChild(0).localPosition - gameObject.transform.localPosition;
|
|
|
+ gameObject.transform.localPosition = Vector3.zero;
|
|
|
}
|
|
|
PhotographUtil.Instance.SetGameObjectCenter(parentGameObj);
|
|
|
}
|