private void Update() { if (!_isGameOver) { if (Input.GetKeyDown(KeyCode.Escape)) { UIController.TogglePause(); } if (PlayerManager.HealthController.IsDead) { StartCoroutine(UIController.ActivateGameOverScreen()); _isGameOver = true; } } }