-
-
Save ppolsinelli/d5dfcc216a17a50201230e6af4b4731f to your computer and use it in GitHub Desktop.
Speed up your game for debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Update() | |
{ | |
if (!Production && Time.time - lastTimeUpdatedTimeSpeeder > 1) | |
{ | |
lastTimeUpdatedTimeSpeeder = Time.time; | |
if (Input.GetKey("f")) | |
{ | |
Time.timeScale = 4f; | |
DOTween.timeScale = 4f; | |
Delogger.Log("Time.timeScale", Time.timeScale); | |
} | |
else | |
{ | |
Time.timeScale = 1; | |
DOTween.timeScale = 1; | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment