Ejemplo n.º 1
0
    /// <summary>
    /// Modifies all voxel blocks within a rectangle
    /// </summary>
    void EditRectangle()
    {
        if (block == null)
        {
            return;
        }

        LazyLoadReferences();
        byte index = (byte)blockManager.blocks.IndexOf(block);

        WorldEditor.SetRectangle(world, currentPosition, _clickStart,
                                 index, ref editHandle, m_blocksToIgnore);
    }