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}]."); } }
public void TogglePause() { if (!Clock.Paused) { TryPause(); } else { _popupMenu.Hide(Clock.Unpause); _lswButton.ReleasePress(); } }
public void HideDeleteDialog() { _deleteDialog.Hide(() => clickBlocker.SetActive(false)); }