I wrote this simple script:
private int counter = 0;
void Update()
{
print( (counter++) + " | Time.unscaledDeltaTime: " +Time.unscaledDeltaTime);
}
When I now start this app in android I get something like this:
35 | Time.unscaledDeltaTime: 0.02269688
When I minimize the app now and wait e.g. like 3 seconds and maximize the app again I get this:
36 | Time.unscaledDeltaTime: 3.097296
37 | Time.unscaledDeltaTime: 0.004942969
38 | Time.unscaledDeltaTime: 0.01963734
Why I get this big impact with unscaledDeltaTime? I use unscaledDeltaTime, because in the game I use
Time.timescale = 0.0F;
Any ideas how can I solve this? Maybe a coroutine?