public void ShowPopup(BasePopup popup, object data = null) { HidePopup(); CurrentPopup = popup; Debug.LogFormat("Showing popup '{0}'", CurrentPopup.gameObject.name); CurrentPopup.Show(data); }
public void ShowPopup(BasePopup popup, bool isPending = false) { if (!isPending) { _pendingPopupsQueue.Enqueue(popup); if (_pendingPopupsQueue.Count > 1 && !isPending) { popup.transform.SetParent(_container, false); popup.gameObject.SetActive(false); return; } } SetBackdropEnabled(popup.RequiresBackdrop); popup.transform.SetParent(_container, false); popup.Show(); }
private void ShowNextPopup() { m_currentPopup = m_popupsQueue.Dequeue(); m_currentPopup.Show(); }