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.


1 | if (getObjects(Enemy. class ).isEmpty()) |
1 | if (getObjects(Enemy. class ).isEmpty()) |