Exemple #1
0
    public void GameOver(string reason)
    {
        Debug.Log($"GameOver: {reason}");

        _playerHUD.gameObject.SetActive(false);
        _routeSelectionScreen.gameObject.SetActive(false);
        _actionSelectionScreen.gameObject.SetActive(false);
        _startScreen.SetActive(false);
        _gameOverScreen.gameObject.SetActive(true);
        _winnersScreen.SetActive(false);

        _gameOverScreen.SetReason(reason);
    }