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