public void SortCompLayerChange(Consts.DrawLayers newLayer, Transform newParent) { currParent = transform.parent = newParent; LayerSortComp.LayerChange(newLayer, true); SendChangeToTracker(); // TODO: Should also have a version that changes the layer order // Possibly one that specifies whether to change the sprite renderer or sorting group specifically, but this is fine for now. }
public void SortCompLayerChange(Consts.DrawLayers newLayer) { LayerSortComp.LayerChange(newLayer, false); SendChangeToTracker(); }