Problem with scripting

Hello, I have a problem

In the code above I’ve created a variable called waitingTime to know when the time has passed to retry.
In the Update method I’ve added deltaTime to the variable and checked if has passed 3 sec.

And if a button has been clicked, restore the value of the variable to 0.

But although I’ve pressed the button the time doesn’t restart and when it reaches to 3 it changes the scene.

Does anyone know where is the mistake?

Cannot see the images you have posted. You should post all relevant code in code tags, not as images, so we can at least see line numbers and can copy your code if we need to test/debug anything.
Can you post your code, and this time use code tags?