private void HideCurrentPopup() { _currentPopup.Hide(() => { _eventSystemManager.TurnOff(); }, () => { _backdrop.enabled = false; _eventSystemManager.TurnOn(); }); }
public void Hide() { if (_pendingPopupsQueue.Count < 1) { return; } BasePopup popupToHide = _pendingPopupsQueue.Peek(); BasePopup nextPopup = null; popupToHide.Hide(() => { _pendingPopupsQueue.Dequeue(); if (_pendingPopupsQueue.Count > 0) { nextPopup = _pendingPopupsQueue.Peek(); } else { Resources.UnloadUnusedAssets(); } if (nextPopup) { ShowPopup(nextPopup, true); } else { _backdrop.SetActive(false); } }); }
public void HidePopup() { if (CurrentPopup) { Debug.LogFormat("Closing popup '{0}'", CurrentPopup.gameObject.name); CurrentPopup.Hide(); CurrentPopup = null; } }
public void HideCurrentPopup() { m_currentPopup?.Hide(); m_currentPopup = null; if (m_popupsQueue.Count > 0) { ShowNextPopup(); } }