|
@@ -507,7 +507,7 @@ namespace GFGGame
|
|
|
SpriteRenderer spr = parentGameObj.transform.GetChild(0).GetComponent<SpriteRenderer>();
|
|
|
ItemTypeCfg itemTypeCfg = ItemTypeCfgArray.Instance.GetCfg(itemCfg.subType);
|
|
|
|
|
|
- int layer = isDefaultLayer ? itemTypeCfg.specialLayer : maxLayer + 1;
|
|
|
+ int layer = isDefaultLayer ? itemTypeCfg.defaultLayer : maxLayer + 1;
|
|
|
for (int i = 0; i < parentGameObj.transform.childCount; i++)
|
|
|
{
|
|
|
Transform obj = parentGameObj.transform.GetChild(i);
|