예제 #1
0
 public virtual void Close()
 {
     visible = false;
     InputHandler.Instance.OnEscPressed   -= OnEscPressed;
     InputHandler.Instance.OnEnterPressed -= OnEnterPressed;
     windowManager.CloseWindow();
 }
예제 #2
0
        private void OpenModal(ModalWindowManager modalWindow, string title, string message)
        {
            modalWindow.CloseWindow();

            modalWindow.titleText = title;

            modalWindow.descriptionText = message;

            modalWindow.UpdateUI();
            modalWindow.OpenWindow();
        }
예제 #3
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         if (_open)
         {
             exitWindow.CloseWindow();
             _open = false;
         }
         else
         {
             exitWindow.OpenWindow();
             _open = true;
         }
     }
 }
예제 #4
0
 private void CloseWindow()
 {
     LeaderboardManager.OnDataRetrieved -= CloseWindow;
     gettingDataMessage.CloseWindow();
 }
예제 #5
0
 public void CloseMenuWindow()
 {
     menuModalWindow.CloseWindow();
     IsMenuOpen = false;
 }