Пример #1
0
    void ResetTile(TerrainTile tile, IntVector2 tileIndex)
    {
        var gen = tile.GetComponent<HeightMapGenerator> ();
        gen.terrainSize = terrainSize;
        gen.heightSettings = heightSettings;

        tile.ResetTile (tileIndex);

        // TODO: Recompute TerrainData and everything that is on the Terrain!
    }