public void GenerateMap() { if (flatTestMap) { hexGrid.CreateMap(mapSize); } else { float[,] noiseMap; float[,] tempMap; float[,] humidMap; if (randomSeed) { mapSeed = Random.Range(int.MinValue, int.MaxValue - 2); tempSeed = mapSeed + 1; humidSeed = mapSeed + 2; } noiseMap = Noise.GenerateNoiseMap(mapSize, mapSize, mapSeed, noiseScale, octaves, persistance, lacunarity, offset); hexGrid.CreateMap(noiseMap, mapToHexFactor, pangea); if (generateBiomes) { tempMap = Noise.GenerateNoiseMap(mapSize, mapSize, tempSeed, noiseScale, octaves, persistance, lacunarity, offset); humidMap = Noise.GenerateNoiseMap(mapSize, mapSize, humidSeed, noiseScale, octaves, persistance, lacunarity, offset); hexGrid.AddBiomes(tempMap, humidMap); } } }