diff options
Diffstat (limited to 'GameCode/LimitDeltaTime.cs')
| -rw-r--r-- | GameCode/LimitDeltaTime.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/GameCode/LimitDeltaTime.cs b/GameCode/LimitDeltaTime.cs new file mode 100644 index 0000000..d0a7f54 --- /dev/null +++ b/GameCode/LimitDeltaTime.cs @@ -0,0 +1,11 @@ +using UnityEngine; + +public class LimitDeltaTime : MonoBehaviour +{ + public float maxDeltaTimeInMs = 16f; + + private void Start() + { + Time.maximumDeltaTime = maxDeltaTimeInMs / 1000f; + } +} |
