Пример #1
0
    public BlockType GenerateBlockType(Vector3 worldPosition)
    {
        var groundHeight = groundMap.GetHeight(worldPosition.x, worldPosition.z);

        return((worldPosition.y > groundHeight) ? BlockType.Air : BlockType.Grass);
    }