// Update is called once per frame void Update() { if (!PlayerHealthScript.isDead()) { if (Input.GetKeyDown(KeyCode.Escape) && pause == false) { Pause(); } else if (Input.GetKeyDown(KeyCode.Escape) && pause == true) { UnPause(); } } }
// Update is called once per frame void Update() { if (!PlayerHealthScript.isDead()) { if (Input.GetKeyDown(KeyCode.Escape) && pause == false) { Pause(); } else if (Input.GetKeyDown(KeyCode.Escape) && pause == true) { UnPause(); } } }