Example #1
0
 public void PushPopup(PopupPresenter popup)
 {
     if (popup != null && !_currentPopups.Contains(popup))
     {
         var popupTransform = popup.GetComponent <RectTransform>();
         popupTransform.SetParent(_canvasTransform, false);
     }
     if (_currentPopups.Count > 0)
     {
         InputManager.Instance.Paused = true;
     }
 }
Example #2
0
 public void PopPopup(PopupPresenter popup)
 {
     if (popup != null && _currentPopups.Contains(popup))
     {
         var popupTransform = popup.GetComponent <RectTransform>();
         popupTransform.SetParent(_canvasTransform);
         popupTransform.localPosition = Vector3.zero;
     }
     if (_currentPopups.Count < 1)
     {
         InputManager.Instance.Paused = false;
     }
 }