Example #1
0
    public void ShowPopup(BasePopup popup, object data = null)
    {
        HidePopup();

        CurrentPopup = popup;
        Debug.LogFormat("Showing popup '{0}'", CurrentPopup.gameObject.name);
        CurrentPopup.Show(data);
    }
Example #2
0
    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();
    }
Example #3
0
 private void ShowNextPopup()
 {
     m_currentPopup = m_popupsQueue.Dequeue();
     m_currentPopup.Show();
 }