public static void Restore(this Transform t, TransformData backup) { t.position = backup.position; t.localScale = backup.scale; t.rotation = backup.rotation; }