public override void UpdateComponent() { float[,] heightmap = GetTerrainHeight(); voronoi.DropOff = dropOff; voronoi.FallOff = fallOff; voronoi.MaxHeight = maxHeight; voronoi.MinHeight = minHeight; voronoi.PeaksAmount = peaksAmount; voronoi.Type = type; voronoi.Apply(heightmap); UpdateTerrainHeight(heightmap); }