Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- var paused : boolean = false;
- function Update () {
- if(Input.GetKeyDown("p") && paused == false) {
- paused = true;
- Time.timeScale = 0;
- }
- else if(Input.GetKeyDown("p") && paused == true) {
- paused = false;
- Time.timeScale = 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement