removeAllEnemies method

void removeAllEnemies()

Implementation

void removeAllEnemies() {
  final enemies = game.world.children.whereType<Enemy>();
  for (var enemy in enemies) {
    enemy.removeFromParent();
  }
}