protected override void OnPreHide() { base.OnPreHide(); Metronome.OnBeat -= OnMetronomeBeat; Metronome.BeatLength.OnNewValue -= OnBeatLengthChange; OverlayNavigator.Hide <HomeMenuOverlay>(); }
/// <summary> /// Hides the current menu overlay. /// </summary> private void HideMenu() { var menu = currentOverlay.Value; if (menu == null) { return; } ReleaseMenu(); OverlayNavigator.Hide(menu); }
/// <summary> /// Attempts to hide the home menu overlay. /// </summary> public void HideMenu() => OverlayNavigator.Hide <HomeMenuOverlay>();
/// <summary> /// Closes the quick menu overlay. /// </summary> private void CloseQuickMenu() => OverlayNavigator.Hide <QuickMenuOverlay>();
/// <summary> /// Navigates to the next specified screen. /// </summary> private void NavigateToScreen <T>() where T : MonoBehaviour, INavigationView { ScreenNavigator.Show <T>(); OverlayNavigator.Hide <GameLoadOverlay>(); }
/// <summary> /// Closes the pause overlay. /// </summary> private void CloseOverlay() { OverlayNavigator.Hide <PauseOverlay>(); }
/// <summary> /// Hides the offsets overlay. /// </summary> public void CloseOffsets() { OverlayNavigator.Hide <OffsetsOverlay>(); }
/// <summary> /// Closes the dialog. /// </summary> public void CloseDialog() { OverlayNavigator.Hide <DialogOverlay>(); }