﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour {

	public bool gamePaused = false;
	public bool playerFreezed = false;
	public bool playerAntiMove = false;
	public bool playerAntiFire = false;

	void Start () {
		
	}
	
	void Update () {
		
		if (Input.GetKeyDown (KeyCode.Escape)){

			if (gamePaused == false){
			gamePaused = true;
			Time.timeScale = 0f;}

			else {
			gamePaused = false;
			Time.timeScale = 1f;
		}}
	}
}
