I made a small game. I hope it can refresh another wave of enemies after one wave of enemies is eliminated, but I don't know how to detect whether the first wave of enemies is eliminated.
I hope some kind people can help me.
if (getObjects(Enemy.class).isEmpty())
if (getObjects(Enemy.class).isEmpty())