public override void OnInspectorGUI()
    {
        MapGenerator        mapGen              = (MapGenerator)target;
        GameObject          userOpt             = GameObject.Find("Options");
        UserOptions         userOptions         = userOpt.GetComponent <UserOptions>();
        UserAdvancedOptions userAdvancedOptions = userOpt.GetComponent <UserAdvancedOptions>();

        if (DrawDefaultInspector())
        {
            if (mapGen.autoUpdate)
            {
                mapGen.SetDrawMode();
                userOptions.UpdateVariables();
                userAdvancedOptions.UpdateVariables();
                mapGen.GenerateMap();
            }
        }

        if (GUILayout.Button("Generate"))
        {
            mapGen.SetDrawMode();
            userOptions.UpdateVariables();
            userAdvancedOptions.UpdateVariables();
            mapGen.GenerateMap();
        }

        if (GUILayout.Button("Generate Models"))
        {
            GameObject arcVeg = GameObject.Find("MapGenerator");
            ArchitectureVegetationGenerator arcVegGen = arcVeg.GetComponent <ArchitectureVegetationGenerator>();

            arcVegGen.GenerateArchitecture();
        }
    }
    public void GenerateArchitectureVegetation()
    {
        GameObject aVG = GameObject.Find("MapGenerator");
        ArchitectureVegetationGenerator aVGenerator = aVG.GetComponent <ArchitectureVegetationGenerator>();

        aVGenerator.GenerateArchitecture();
    }
    public void UpdateDraw()
    {
        if (drawMode == DrawMode.Mesh || drawMode == DrawMode.FalloffMap)
        {
            mesh.SetActive(true);
            plane.SetActive(false);
        }
        else
        {
            mesh.SetActive(false);
            plane.SetActive(true);
        }
        GameObject aVG = GameObject.Find("MapGenerator");
        ArchitectureVegetationGenerator aVGenerator = aVG.GetComponent <ArchitectureVegetationGenerator>();

        if (autoUpdate == false && useRandomSeed == false)
        {
            aVGenerator.GenerateArchitecture();
        }
    }
    public override void OnInspectorGUI()
    {
        ArchitectureVegetationGenerator arcVegGen = (ArchitectureVegetationGenerator)target;

        /*GameObject userOpt = GameObject.Find("Options");
         * UserOptions userOptions = userOpt.GetComponent<UserOptions>();
         * UserAdvancedOptions userAdvancedOptions = userOpt.GetComponent<UserAdvancedOptions>();*/

        if (DrawDefaultInspector())
        {
        }

        if (GUILayout.Button("Delete Models"))
        {
            arcVegGen.DeleteObjectsFromList();
        }

        if (GUILayout.Button("Generate Models"))
        {
            arcVegGen.GenerateArchitecture();
        }
    }