private void attemptSpawn(float dt){
		spawnTime-=dt;
		if(spawnTime<=0 && spawnedObjs.size()<spawnMax ){
			if(main.dayTime>=Main.NIGHT_TIME && spawnType==SpawnType.CIVILIAN)
				spawnType = SpawnType.NIGHTER;
			else if(main.dayTime<Main.NIGHT_TIME && spawnType==SpawnType.NIGHTER)
				spawnType = SpawnType.CIVILIAN;
			
			Mob e = spawn(x, y);
			
			if(e!=null)
				if(Game.res.getTexture(e.ID)!=null){
					e.setGameState(main);
					main.addObject(e);
					spawnedObjs.put(e, 0f);
				}
			spawnTime = spawnDelay;
		}
	}