using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
void Update() {
if (Input.GetButtonDown("Fire1")) {
if (Time.timeScale == 1.0F)
Time.timeScale = 0.7F;
else
Time.timeScale = 1.0F;
Time.fixedDeltaTime = 0.02F * Time.timeScale;
}
}
}