unity 让两个脚本的 字段一样
var parentSpriteShapeController = src.GetComponent<SpriteShapeController>();
var mirrorSpriteShapeController = dst.GetComponent<SpriteShapeController>();
if (parentSpriteShapeController != null && mirrorSpriteShapeController != null && parentSpriteShapeController.spline.GetHashCode() != hashCode)
{
SerializedObject srcController = new SerializedObject(parentSpriteShapeController);
SerializedObject dstController = new SerializedObject(mirrorSpriteShapeController);
SerializedProperty srcSpline = srcController.FindProperty("m_Spline");
dstController.CopyFromSerializedProperty(srcSpline);
dstController.ApplyModifiedProperties();
EditorUtility.SetDirty(mirrorSpriteShapeController);
return parentSpriteShapeController.spline.GetHashCode();