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; } }
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; } }