Replaced deltaTime usage with Unscaled deltaTime

This commit is contained in:
Albin Corén 2018-04-17 14:52:13 +02:00
parent 89e666d09a
commit 7054220a40
2 changed files with 2 additions and 2 deletions

View File

@ -813,7 +813,7 @@ namespace MLAPI.MonoBehaviours.Core
lastTimeSyncTime = NetworkTime;
}
networkTime += Time.deltaTime;
networkTime += Time.unscaledDeltaTime;
}
}

View File

@ -135,7 +135,7 @@ namespace MLAPI.MonoBehaviours.Prototyping
//Snap, set T to 1 (100% of the lerp)
lerpT = 1f;
}
lerpT += Time.deltaTime / timeForLerp;
lerpT += Time.unscaledDeltaTime / timeForLerp;
transform.position = Vector3.Lerp(lerpStartPos, lerpEndPos, lerpT);
transform.rotation = Quaternion.Slerp(lerpStartRot, lerpEndRot, lerpT);
}