public virtual void Close() { visible = false; InputHandler.Instance.OnEscPressed -= OnEscPressed; InputHandler.Instance.OnEnterPressed -= OnEnterPressed; windowManager.CloseWindow(); }
private void OpenModal(ModalWindowManager modalWindow, string title, string message) { modalWindow.CloseWindow(); modalWindow.titleText = title; modalWindow.descriptionText = message; modalWindow.UpdateUI(); modalWindow.OpenWindow(); }
private void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { if (_open) { exitWindow.CloseWindow(); _open = false; } else { exitWindow.OpenWindow(); _open = true; } } }
private void CloseWindow() { LeaderboardManager.OnDataRetrieved -= CloseWindow; gettingDataMessage.CloseWindow(); }
public void CloseMenuWindow() { menuModalWindow.CloseWindow(); IsMenuOpen = false; }