removeTileset method

void removeTileset(
  1. List<int> sprite
)

Implementation

void removeTileset(List<int> sprite) {
  sprite.sort();
  for(int i = sprite.length-1; i >= 0;i--){
    tileSets.removeAt(sprite[i]);
    objectTappedOn = [];
    currentSize = null;
    if(tileSets.isEmpty){
      levelImage = null;
    }
  }
  updateMinMap = true;
  update();
}