public void RemoveFromOptimizer(Transform optimizerTransform) { if (SourceParentTransform != null && TargetTransform != null) { TargetTransform.SetParent(SourceParentTransform, true); } }
public void AddToOptimizer(Transform optimizerTransform) { TargetTransform?.SetParent(optimizerTransform, true); }