Skip to content

Instantly share code, notes, and snippets.

@jakevsrobots
Created March 15, 2015 20:09
Show Gist options
  • Save jakevsrobots/7af4032f281ad91e73e5 to your computer and use it in GitHub Desktop.
Save jakevsrobots/7af4032f281ad91e73e5 to your computer and use it in GitHub Desktop.
using UnityEngine;
public class FastForwardButton : MonoBehaviour
{
void Update()
{
if(Application.isEditor && Input.GetKeyDown(KeyCode.F))
{
if(Time.timeScale == 1)
Time.timeScale = 7;
else
Time.timeScale = 1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment