public int getHeight(int x, int z) { float height; lock (heightNoise) { height = heightNoise.GetNoise(x, z) * _maxMountainHeight + _offset; } return((int)height); }
private int GetIslandHeight(int x, int z) { float height = islandNoise.GetNoise(x, z) * 50; return((int)height + 20); }
private int GetTerrainHeight(int x, int z) { float height = terrainNoise.GetNoise(x, z) * 10; return((int)height + 20); }