How do I make the timeScale not affect the timer?

How do I make the timeScale not affect the timer?

Hello, I have this timer that starts at the beginning of my game. What I wanted was, when it’s counting down from 3, time will be paused with Time.timeScale = 0f; and when it reaches 0, it will unpause with Time.timeScale = 1f;

The problem is, Time.timeScale also pauses my countdowntimer, so it stays stuck at “3.” I’ve tried changing Time.deltaTime to Time.unscaledDeltaTime, but it randomizes my timer, usually having it start from negative onwards.

Is there any other way to have the timeScale not affect the timer?
Any insights on this would be much appreciated!

Latest posts