- Home /
Question by
JulioKoebes · Aug 26, 2013 at 07:17 PM ·
timefloatdifferent
time.deltaTime different? varies?
hey guys
i use time.deltaTime to run a counter... just a simple float icrease.
in the Update() void:
float counter; counter += Time.deltaTime;
i use this counter in different scritps... it works fine. but after for example 10 seconds running, the value of counter a is 10 but the value of counter b is much higher like 130.
and i dont know why... any idea?
greetings
Comment
I've never seen this happen, so I expect some code issue. Post the scripts for both timers.
You only show counter
and not counterb
....probably a good thing to include :)
you must be doing something diffrent , your other code also is in the update function ?