Restart Game with Video Ads of Appodeal

Hey, guys.
I want to restart game like Flappy Bird and I add video ads before sceneManager loads the same scene.
Unfortunately, each time I restart, the scene runs first then the video ads run. So in the end, when the video ads finished run and get closed, the player is died. My scene has countdown timer in 3 seconds. But each time ads is running, this countdown is no more and player fall and die.

Anyone know how to fix this?

I’ll send you $20 for coffee via Western U. once my game succeed.

Here is my code of GameControl: GameControl - Pastebin.com

Here is my code for ads in Appodeal: AppodealManager - Pastebin.com

I was wrong.
I should add video ads when game over not when player push restart button.
Now it runs well.
Thank God.