Waves not spawning between scenes

Hi, I’m having the same issue another user was having: waves are not spawning when I load the game from the Start Menu or Game Over screen.

It seems that the first few times I loop through the scenes, it works fine, but then it stops all of a sudden.

I tried copying the scripts from the lecture but it still didn’t work.

Did it happen to anyone else?

This is how my Enemy Spawner looks when it’s working:

And this is how it looks when it breaks:

Ok, I figured it out. My script name didn’t match the class name: file name was “Wave Config” and class was “WaveConfig”. I probably renamed it at some point.

I have created the script from scratch again and it works fine now.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms