Ejemplo n.º 1
0
    public void OnEndGame()
    {
        _isEndGame = true;

        _gameplayPanel.gameObject.SetActive(false);
        _popupPanel.Show();

        AudioManager.StopBackgroundMusic();
    }
Ejemplo n.º 2
0
    void IPointerClickHandler.OnPointerClick(PointerEventData eventData)
    {
        StopAllCoroutines();
        int linkIndex = TMP_TextUtilities.FindIntersectingLink(interactiveTxt, Input.mousePosition, null);

        if (linkIndex > -1)
        {
            var linkInfo = interactiveTxt.textInfo.linkInfo[linkIndex];
            var linkId   = linkInfo.GetLinkID();

            var textData = FindObjectOfType <TextDataController>().Get(linkId);

            PopupPanel.Show(textData);
            StartCoroutine(ClosePopup());
        }
    }
Ejemplo n.º 3
0
    public virtual void Show()
    {
        back.enabled = false;

        canvas.alpha          = 1;
        canvas.interactable   = true;
        canvas.blocksRaycasts = true;

        parentPanel.Show(titleKey, this);

        if (memoriesPanel != null)
        {
            lastSelected = EventSystem.current.currentSelectedGameObject;
            memoriesPanel.OnSelectMemory();
        }
    }