void CreateMap() { // Delete Previous Terrain GameObject terrain = GameObject.Find("Terrain"); // Find the terrain gameObject and assign to "terrain" gameObject Destroy(terrain); // Construct the new Terrain int width = Vars.size; int height = Vars.size; float scale = Vars.scale; float multiplier = Vars.depthMultiplier; int oct = Vars.octaves; float lac = Vars.lacunarity; float pers = Vars.persistance; float[,] zValues = landGenCalc.GenerateLand(width, height, scale, oct, lac, pers); // Gets the revised 'z' values from 'LandGenCalc' class meshGen.ConstructTerrain(width, height, multiplier, zValues); }