public override void OnInspectorGUI()
 {
     serializedObject.Update();
     EditorGUI.BeginChangeCheck();
     EditorGUILayout.HelpBox("total point : " + _cp.GetPath().Count + "\nselect point : " + selectId, MessageType.Info);
     EditorGUILayout.Separator();
     EditorGUILayout.PropertyField(_seqProp);
     if (_cp.GetPath().Count > 0)
     {
         EditorGUILayout.PropertyField(serializedObject.FindProperty("_path").GetArrayElementAtIndex(selectId));
     }
     if (EditorGUI.EndChangeCheck())
     {
         serializedObject.ApplyModifiedProperties();
     }
 }
    static void DrawGizmo(CornerPath cp, GizmoType gt)
    {
        Gizmos.color = Color.green;
        var segs = cp.GetPath();

        if (segs.Count >= 2)
        {
            for (int i = 0; i < segs.Count - 1; ++i)
            {
                Gizmos.DrawLine(cp.transform.TransformPoint(segs[i]), cp.transform.TransformPoint(segs[i + 1]));
            }
        }
    }