You will start the timer right after you turn off the cursor. To start a timer, you have to get Time.time—the amount of time elapsed since the application started. To that value, you will add the amount of time for the timer to run. When the current elapsed time is greater than your target time, the code inside its conditional is read.
2. Near the top of the ProcessObject function, after the controlCenter.
GetComponent(GameManager) line, add the timer code: