Skip to content

Instantly share code, notes, and snippets.

@Kurukshetran
Forked from jakevsrobots/FastForwardButton.cs
Created November 4, 2015 02:52
Show Gist options
  • Save Kurukshetran/1d3002f14a3beb719b24 to your computer and use it in GitHub Desktop.
Save Kurukshetran/1d3002f14a3beb719b24 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