Пример #1
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;
        }
    }
Пример #2
0
    public override void EndGame()
    {
        gameOverUI.HideUI();

        ui.SetActive(true);
    }