Example #1
0
    public void remove(IPuzzleLayer layer)
    {
        var i = layer.GetLayerIndex();

        layers.RemoveAt(i);
        layer.SetLayerIndex(Tool.NullIndex);

        refreshLayerDepth();
    }
Example #2
0
    public void update(IPuzzleLayer layer, bool downToUp = true)
    {
        var i = layer.GetLayerIndex();

        layers.RemoveAt(i);

        // 從下往上插入會比較快
        if (downToUp)
        {
            downToUpInsert(layer);
        }
        else
        {
            upToDownInsert(layer);
        }

        refreshLayerDepth();
    }