@Override
    public void update(long deltaMs) {
        sinceLastSpawn += deltaMs;
        if(sinceLastSpawn >= betweenSpawns && spawned < amount) {
            GameSector s = Application.get().getLogic().getGame().getSector(sector);
            if(s.free()) {
                s.spawnEnemy(resource);
                sinceLastSpawn = 0;
                spawned++;
            }
        }
    }