public override void OnInspectorGUI()
    {
        MapHandler controller = (MapHandler)target;

        if (DrawDefaultInspector() && controller.autoUpdate)
        {
            controller.DisplayInEditor();
        }

        if (GUILayout.Button("Generate"))
        {
            controller.DisplayInEditor();
        }
    }