void AlignRotateTransforms(GFPolarGrid pGrid, List <Transform> allTransforms) { foreach (Transform curTransform in allTransforms) { if (!(ignoreRootObjects && curTransform.parent == null && curTransform.childCount > 0) && (affectedLayers.value & 1 << curTransform.gameObject.layer) != 0) { pGrid.AlignRotateTransform(curTransform, lockAxes); if (inculdeChildren) { foreach (Transform child in curTransform) { pGrid.AlignRotateTransform(child, lockAxes); } } } } }
void AlignRotateTransforms(GFPolarGrid pGrid, List<Transform> allTransforms) { foreach(Transform curTransform in allTransforms){ if(!(ignoreRootObjects && curTransform.parent == null && curTransform.childCount > 0) && (affectedLayers.value & 1<<curTransform.gameObject.layer) != 0){ pGrid.AlignRotateTransform(curTransform, lockAxes); if(inculdeChildren){ foreach(Transform child in curTransform){ pGrid.AlignRotateTransform(child, lockAxes); } } } } }