Exemple #1
0
    void Start()
    {
        diamondSquaeAverageIsland = new DiamondSquareAverageIsland(minValue, altitude, addAltitude);
        this.terrain = GetComponent <Terrain>();
        TerrainUtil terrainUtil =
            new TerrainUtil(terrain, texture2D, diamondSquaeAverageIsland, height + 1, width + 1, depth, 3);

        terrainUtil.Draw();
    }
    void Start()
    {
        var matrix = new int[height, width];

        diamondSquareAverageIsland = new DiamondSquareAverageIsland(minWidth, altitude, addAltitude);
        diamondSquareAverageIsland.Draw(matrix);

        new OutputConsole().Draw(matrix);
        new OutputConsole(arg => arg < (altitude + addAltitude) / 2 + minWidth, "..", "##").Draw(matrix);
    }