예제 #1
0
    public void SwitchUI(UIState state)
    {
        switch (state)
        {
        case UIState.MainMenu:
            _mainMenu.Show();
            _inGameUI.Hide();
            _pauseMenu.Hide();
            _endGameMenu.Hide();
            break;

        case UIState.InGame:
            _mainMenu.Hide();
            _inGameUI.Show();
            _pauseMenu.Hide();
            _endGameMenu.Hide();
            break;

        case UIState.Pause:
            _mainMenu.Hide();
            _inGameUI.Hide();
            _pauseMenu.Show();
            _endGameMenu.Hide();
            break;

        case UIState.EndGame:
            _mainMenu.Hide();
            _inGameUI.Hide();
            _pauseMenu.Hide();
            _endGameMenu.Show();
            break;
        }
    }
예제 #2
0
 public void FinishGame()
 {
     _endGameMenu.Show();
 }