I have a problem which I haven't been able to solve myself for a long time:
In the game, the enemies come in waves, and I want to achieve, that in every third wave comes a boss. I haven't make a boss yet, but I made a global variable named WaveCounter which counts the current wave in numbers, and when the value is equal to 3 there shouldn't come another wave of enemies because only the boss will come (when I'll make it).
I've tried two ways to resolve, that the things work the way they should, but in both versions, the enemies come even when WaveCounter is equal to 3.
I made a simple example for both versions, to show you what the problem is (these are my first Google Drive sharings, I hope everything is ok):
Anyone knows what's the problem?