Brackeys/Tower-Defense-Tutorial

Bug when you Retry level

Opened this issue · 6 comments

Hello, I while was playing around on your project and was trying to make some new things there. Found bug when you Pause game or have Game Over and press Retry, scene load (like it suppose) but nothing happening after that.

Not sure what the problem is. Are you saying that changes you make in the scene aren't being registered when playing it?

I have this bug too, when you click the retry button the scene reloads but the countdown timer does not begin again.

In your WaveSpawner.cs script, add the following:
void Start()
{
EnemiesAlive = 0;
}

Thanks Winchuckster ! it works for me... but my game over Retry and Menu dont work ...
it says Coroutine couldn't be started because the the game object 'SceneFader' is inactive!

Help

@winchuckster That solution works for this issue. I'm creating a PR with that code and referencing you since your account is inactive.

booyakasha! @winchuckster - I'll keep waiting for the aha moment on this, but I need that solution, thanks.