示例#1
0
        //----------------------------------------
        private void GameOver()
        {
            isGameOver     = true;
            timer.IsActive = false;

            // Show Game Over UI
            gameOver.ShowUI();

            // Unlock achievement
            Achievements.UnlockWelcomeToRebound();
        }
示例#2
0
    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;
        }
    }
示例#3
0
文件: Player.cs 项目: dorog/UNE
 public override void GameOver(Participant winner)
 {
     gameOverUI.ShowUI(winner == this);
 }