public static void Apply(TransformData source, Transform target, Space space = Space.Self)
{
if (space == Space.Self)
{
target.localPosition = source.position;
target.localRotation = source.rotation;
target.localScale = source.scale;
}
else
{
target.position = source.position;
target.rotation = source.rotation;
target.localScale = source.scale;
}
}