|
@@ -15,7 +15,7 @@ namespace GFGGame
|
|
|
private const string FORMAT_EFFECT_OBJ_NAME = "T{0}_eff";
|
|
|
private const string FORMAT_LAYER_RES_NAME_WITH_T = "{0}_t";
|
|
|
|
|
|
- public static void AddItem(int itemID, GameObject sceneObj, bool needSetMask = false, bool showAni = true, GameObject parentObj = null, int layerId = int.MinValue, int resLayer = int.MinValue)
|
|
|
+ public static void AddItem(int itemID, GameObject sceneObj, bool needSetMask = false, bool showAni = true, GameObject parentObj = null, int resLayer = int.MinValue)
|
|
|
{
|
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemID);
|
|
|
if (itemCfg != null)
|
|
@@ -34,9 +34,9 @@ namespace GFGGame
|
|
|
parentObj = role.gameObject;
|
|
|
}
|
|
|
}
|
|
|
- if (layerId > int.MinValue)
|
|
|
+ if (resLayer > int.MinValue)
|
|
|
{
|
|
|
- updateLayerRes(itemCfg, parentObj, layerId, resLayer == 2, needSetMask, showAni);
|
|
|
+ updateLayerRes(itemCfg, parentObj, resLayer, resLayer == 2, needSetMask, showAni);
|
|
|
}
|
|
|
else
|
|
|
{
|