Which line of code sets the timerValue to timeToCompleteQuestion at the start?

I dont quite get it :weary:,

Hi Zopdas,

Welcome to our community! :slight_smile:

We set timerValue = timeToCompleteQuestion; in the UpdateTimer method. See line 51 in Gary’s script.


See also:

1 Like

Thank you ! I think I got it now !
So basically at the start, the bool isAnsweringQuestion is false, so because of this the UpdateTimer will go to the else statement and set the timerValue = timeToCompleteQuestion and isAnsweringQuestion = true. Then the timer will start.
Did I got it right ?

Yes, that’s correct. :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms