//---------------------------------------- private void GameOver() { isGameOver = true; timer.IsActive = false; // Show Game Over UI gameOver.ShowUI(); // Unlock achievement Achievements.UnlockWelcomeToRebound(); }
private void UpdateUI() { _mainMenuUI.HideUI(); _gameUI.HideUI(); _gameOverUI.HideUI(); switch (_currentUI) { case UIType.MainMenu: _mainMenuUI.ShowUI(); break; case UIType.Game: _gameUI.ShowUI(); break; case UIType.GameOver: _gameOverUI.ShowUI(); break; } }
public override void GameOver(Participant winner) { gameOverUI.ShowUI(winner == this); }