Exemplo n.º 1
0
    public override void OkButtonPressed()
    {
        if (!isShowing)
        {
            return;
        }

        SoundManager.instance.PlaySound(SoundFxNames.back_button);
        ExecuteFunctions(FunctionTypes.ok);
        _popupManager.DisplayedPopupWasClosed();
        _thisCanvas.enabled = false;
        isShowing           = false;
    }
Exemplo n.º 2
0
    protected override void OnClosePopup()
    {
        SoundManager.instance.PlaySound(SoundFxNames.back_button);
        Time.timeScale  = 1;
        _canvas.enabled = false;
        _popupManager.DisplayedPopupWasClosed();

        if (_gameManager.CurrentScene == GameManager.GameScenes.Gameplay)
        {
            if (_gameplayCamera == null)
            {
                _gameplayCamera = FindObjectOfType <CameraMovement>();
            }
            _gameplayCamera.SetCameraMovement(true);
        }

        ExecuteFunctions(FunctionTypes.close);
    }
Exemplo n.º 3
0
    public void HideCanvas()
    {
        if (_isDisplayed)
        {
            _popupManager.DisplayedPopupWasClosed();
        }

        _canvas.enabled = false;
        _categoryPanel.OnCategoryPressed -= OnCategoryPressed;

        categoryPanel.SetDisabled();

        foreach (var item in categoryScrollerCanvases)
        {
            item.SetCanvas(false);
        }

        typeInfoCanvas.SetCanvas(false);
        _isDisplayed   = false;
        Time.timeScale = 1;
    }
Exemplo n.º 4
0
 public void OnExit()
 {
     SoundManager.instance.PlaySound(SoundFxNames.back_button);
     gameObject.SetActive(false);
     _popupManager.DisplayedPopupWasClosed();
 }