Example #1
0
 public void ToggleMenuState()
 {
     if (_popupMenu != null)
     {
         if (_popupMenu.Visible)
         {
             _popupMenu.Hide(null);
             _lswButton.ReleasePress();
         }
         else
         {
             _popupMenu.Show(null);
             _lswButton.HoldPress();
         }
     }
     else
     {
         Debug.LogWarning($"No IUiPopup component attached to game object [{menu.name}].");
     }
 }
Example #2
0
 public void TogglePause()
 {
     if (!Clock.Paused)
     {
         TryPause();
     }
     else
     {
         _popupMenu.Hide(Clock.Unpause);
         _lswButton.ReleasePress();
     }
 }
Example #3
0
 public void HideDeleteDialog()
 {
     _deleteDialog.Hide(() => clickBlocker.SetActive(false));
 }