Ejemplo n.º 1
0
    private void Update()
    {
        if (!_isGameOver)
        {
            if (Input.GetKeyDown(KeyCode.Escape))
            {
                UIController.TogglePause();
            }

            if (PlayerManager.HealthController.IsDead)
            {
                StartCoroutine(UIController.ActivateGameOverScreen());
                _isGameOver = true;
            }
        }
    }