File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Runtime/Scripts/Util/GameObject Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ public float NextUpdateTime {
5959 get { return _nextUpdateTime ; }
6060 set { _nextUpdateTime = value ; }
6161 }
62- private float _nextFixedUpdateTime = 0.0f ;
63- public float NextFixedUpdateTime {
62+ private double _nextFixedUpdateTime = 0.0f ;
63+ public double NextFixedUpdateTime {
6464 get { return _nextFixedUpdateTime ; }
6565 set { _nextFixedUpdateTime = value ; }
6666 }
@@ -197,8 +197,8 @@ void Update() {
197197 void FixedUpdate ( ) {
198198 ZOFixedUpdate ( ) ;
199199
200- if ( Time . fixedTime >= _nextFixedUpdateTime ) {
201- _nextFixedUpdateTime = Time . fixedTime + ( 1.0f / _updateRateHz ) ;
200+ if ( Time . fixedUnscaledTimeAsDouble >= _nextFixedUpdateTime ) {
201+ _nextFixedUpdateTime = Time . fixedUnscaledTimeAsDouble + ( 1.0 / _updateRateHz ) ;
202202
203203 ZOFixedUpdateHzSynchronized ( ) ;
204204
You can’t perform that action at this time.
0 commit comments