// Use this for initialization
    void Start()
    {
        terrain = GetComponent <Terrain>();
        size    = terrain.terrainData.size;
        var forestOptions = new FractalOptions(2, 5);
        var townOptions   = new FractalOptions(2, 5);

        InitializeAlphamap();
        buildFields();
        buildRoads();
        buildTerrainTextures(forestOptions);
        buildTownTextures(townOptions);
        buildTrees();
        buildHedges();
        terrain.terrainData.SetAlphamaps(0, 0, alphaMap);
        terrain.Flush();

        TerrainData.initialize(alphaMap);
        RoadNetwork.buildNetwork();
    }