Level doesn't end when the timer is up and attacker is 0

Hi,

My level doesn’t end (the Debug.Log is not printed) even after the timer is up and the attacker is 0.
It only gets printed when I stop the play mode.

It seems like the whole OnDestroy() takes place after I stop the play mode because I tried to debug.log the bool, the numberofenemies all that is in the AttackerKilled() gets printed after I stop the play mode

Need help for this, I’m not sure what to do.
Is there anyone experiencing the same issue? Any solution?

Thanks,
Ryan

Provide code to look through.

Hi ryanren,

Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?