- Home /
Question by
The702Guy · Jul 26, 2021 at 01:08 AM ·
updatedontdestroyonloadtime.deltatime
DontDestroyOnLoad causing update to not work in next scene?
So I have an object on a timer. The timer goes between scenes. The timer counts down using :
private void Update()
{
timer -= Time.deltaTime;
}
In the original scene, the timer counts down as its supposed to however when it transitions to the next scene using DontDestroyOnLoad the timer resets to the original value and does not countdown. The rest of the script works fine in the next scene, it just seems like Update is not working and I can't figure it out.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613040814im_/https://answers.unity.com/themes/thub/images/avi.jpg)