|
@@ -181,7 +181,7 @@ namespace GFGGame
|
|
|
|
|
|
for (int i = 0; i < itemGameObjs.Count; i++)
|
|
|
{
|
|
|
- ChangeLayer(itemGameObjs[i], i * 100, state);
|
|
|
+ ChangeLayer(itemGameObjs[i], i * 300, state);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -233,7 +233,7 @@ namespace GFGGame
|
|
|
}
|
|
|
|
|
|
var render = parentObj.GetComponentInChildren<CubismRenderController>();
|
|
|
- if (render != null)
|
|
|
+ if (render != null && render.gameObject.activeSelf == true)
|
|
|
{
|
|
|
render.SortingOrder = render.SortingOrder + changeLayer;
|
|
|
}
|