예제 #1
0
 public void GameOver(WinOrLoss winOrLoss)
 {
     Timer.TimerClock(TimerFuctions.Stop);
     _isGameOver = true;
     _playerCarController.enabled = false;
     _uIManager.GameOverUIElements(winOrLoss);
 }
예제 #2
0
    public void GameOverUIElements(WinOrLoss winOrLoss)
    {
        _timeInGameUI.SetActive(false);
        _speedometerUI.SetActive(false);
        _tapToPlayUI.SetActive(true);

        _tapToPlayUI.GetComponent <TextManipulation>().GameOverScreenText();

        if (winOrLoss == WinOrLoss.Win)
        {
            _gameOverWinUI.SetActive(true);
            _timeScoreUI.SetActive(true);
        }
        else
        {
            _gameOverLossUI.SetActive(true);
        }
    }