Game automatically loses before the timer starts

The CountdownTimer script I wrote works, but I’m guessing since currentTime <= 0, the timer never makes it to 0 because the “else” will automatically take the player to the “GameOver” scene. I’m trying to figure out how to have the Timer continue counting down until the player is killed off and/or makes it to the final count down? I have a script written for if the player falls off the platform, the “GameOver” scene will be loaded. However, if the BadGuys explode and kill the player, he dies but nothing happens. I know the “BadGuy script” has to be involved in this but I am completely stomped on what to write for that…


That else should be else if(playerDead). You just need access to the player class and define when your player is dead