void ShowStartNewGameConfirmationPopup()
    {
        _popupPanel.ConfirmationResponseAction += StartNewGamePopupResponse;
        _popupPanel.ClosePopupAction           += HidePopup;

        _popupPanel.gameObject.SetActive(true);
        _popupPanel.SetPopup(PopupType.NewGame);
    }
Пример #2
0
    void ShowBackToMenuConfirmationPopup()
    {
        _pauseScreen.gameObject.SetActive(false);         // Set pause screen to inactive

        _popupPanel.ClosePopupAction += HideBackToMenuConfirmationPopup;

        _popupPanel.ConfirmationResponseAction += BackToMainMenu;

        _inputReader.EnableMenuInput();
        _popupPanel.gameObject.SetActive(true);
        _popupPanel.SetPopup(PopupType.BackToMenu);
    }