public override void OnInspectorGUI()
    {
        //base.OnInspectorGUI();

        //Autoupdate if we have changed a value in the editor, such as mapSize
        if (DrawDefaultInspector())
        {
            triangulatePoints.GenerateMap();

            EditorUtility.SetDirty(target);
        }

        if (GUILayout.Button("Triangulate points"))
        {
            triangulatePoints.GenerateMap();

            EditorUtility.SetDirty(target);
        }
    }
    public override void OnInspectorGUI()
    {
        //base.OnInspectorGUI();

        //Update when changing value in inspector
        if (base.DrawDefaultInspector())
        {
            triangulatePoints.GenerateMap();

            EditorUtility.SetDirty(target);
        }

        if (GUILayout.Button("Triangulate points"))
        {
            triangulatePoints.GenerateMap();

            EditorUtility.SetDirty(target);
        }
    }