public TerrainChunck(TerrainChunckSetting a, float[,] b, int c, int d) { Settings = a; HeightmapValues = b; X = c; Z = d; }
// Use this for initialization void Start() { int terrainLength = num * 4; var settings = new TerrainChunckSetting(num, num, terrainLength, height); TerrainChunck terrain = new TerrainChunck(settings, getTxtHeightmap(), 0, 0); terrain.CreateTerrain(); }