public override void OnInspectorGUI()
    {
        EditorGUILayout.LabelField(
            "OBJECT PATH - " +
            "Use this for moving platforms and such.");

        serializedObject.Update();

        ObjectPath objectPath = (ObjectPath)target;

        objectPath.swingType = (ObjectPath.SwingType)EditorGUILayout.EnumPopup("Swing Type", objectPath.swingType);
        if (objectPath.swingType.Equals(ObjectPath.SwingType.LOOP))
        {
            objectPath.goBackToFirst = EditorGUILayout.Toggle("Loop back to first?", objectPath.goBackToFirst);
        }

        ac = EditorGUILayout.CurveField("Movement Curve", ac);
        objectPath.SetCurve(ac);

        objectPath.time = EditorGUILayout.FloatField("Time per Motion", objectPath.time);
        //objectPath.elapsedTime = EditorGUILayout.FloatField ("Starting Delay", objectPath.elapsedTime);
        EditorGUILayout.LabelField(
            "NODES - " +
            "Vector3's for positions.");

        list.DoLayoutList();

        serializedObject.ApplyModifiedProperties();
    }