Skip to content

Instantly share code, notes, and snippets.

@ppolsinelli

ppolsinelli/Speedupper.cs Secret

Created Aug 26, 2018
Embed
What would you like to do?
Speed up your game for debug
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
You can’t perform that action at this time.