public void OnEndGame() { _isEndGame = true; _gameplayPanel.gameObject.SetActive(false); _popupPanel.Show(); AudioManager.StopBackgroundMusic(); }
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()); } }
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(); } }