Attach the StopWatch script to a GameObject. Connect your UI buttons to the corresponding functions. Display the time using Text or TMP Text component. Attach GameTimer to a persistent GameObject. Add ...
Create empty GameObject and attach Timer.cs script, paste the seconds duration float in the inspector. By default ⌛ is 300f (5 min). Now you can use Timer in any script by Timer events, which are ...