static public void SetLayer(this GameObject item, LayerEX layer) { if (item.layer != layer.GetId()) { item.layer = layer.GetId(); } }
static public void SetLayer(this Component item, LayerEX layer) { item.gameObject.SetLayer(layer); }