public void GameOver(WinOrLoss winOrLoss) { Timer.TimerClock(TimerFuctions.Stop); _isGameOver = true; _playerCarController.enabled = false; _uIManager.GameOverUIElements(winOrLoss); }
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); } }