Update TimeScaleWidget.cs

This commit is contained in:
Sinai 2022-05-11 22:49:28 +10:00
parent 3d61011e59
commit 4c029dad90

View File

@ -36,7 +36,7 @@ namespace UnityExplorer.UI.Widgets
{ {
// Fallback in case Time.timeScale patch failed for whatever reason // Fallback in case Time.timeScale patch failed for whatever reason
if (locked) if (locked)
Time.timeScale = desiredTime; SetTimeScale(desiredTime);
if (!timeInput.Component.isFocused) if (!timeInput.Component.isFocused)
timeInput.Text = Time.timeScale.ToString("F2"); timeInput.Text = Time.timeScale.ToString("F2");