﻿using UnityEngine;
using System.Collections;

public class DynamicFrameRate : MonoBehaviour {
	
	// Use this for initialization
	void Start () {
		Debug.Log ("GC script DynamicFrameRate.cs is up and running.");
		Debug.Log ("------------------------------------------------");
	}
	
	// Update is called once per frame
	void Update () {
		if (Input.GetKey(KeyCode.Alpha1)) {
			Debug.Log ("DynamicFrameRate: Frames reset to normal speed.");
			Time.timeScale = 1;
		}
		else if (Input.GetKey (KeyCode.Alpha0)) {
			Debug.Log ("DynamicFrameRate: Frames stopped entirely. (Press 1 to (r)evert.)");
			Time.timeScale = 0;
		}
		else if (Input.GetKey(KeyCode.Alpha2)) {
			Debug.Log("DynamicFrameRate: Frames now moving at half speed. (Press 1 to (r)evert.)");
			Time.timeScale = 0.5f;
		}
		
	}
}