public void remove(IPuzzleLayer layer) { var i = layer.GetLayerIndex(); layers.RemoveAt(i); layer.SetLayerIndex(Tool.NullIndex); refreshLayerDepth(); }
public void update(IPuzzleLayer layer, bool downToUp = true) { var i = layer.GetLayerIndex(); layers.RemoveAt(i); // 從下往上插入會比較快 if (downToUp) { downToUpInsert(layer); } else { upToDownInsert(layer); } refreshLayerDepth(); }