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?