public void GenerateMap()
    {
        float[,] noiseMap = Noise.GenerateNoiseMap(MapWidth, MapHeight, NoiseScale);

        MapDisplayBehaviour display = FindObjectOfType <MapDisplayBehaviour> ();

        display.DrawNoiseMap(noiseMap);
    }
Example #2
0
    public void GenerateMap()
    {
        float[,] noiseMap = Noise.GenerateNoiseMap(MapWidth, MapHeight, Seed, NoiseScale,
                                                   OctavesNumber, Persistance, Lacunarity,
                                                   Offset);

        MapDisplayBehaviour display = FindObjectOfType <MapDisplayBehaviour> ();

        display.DrawNoiseMap(noiseMap);
    }