예제 #1
0
        protected override void OnPreHide()
        {
            base.OnPreHide();

            Metronome.OnBeat -= OnMetronomeBeat;
            Metronome.BeatLength.OnNewValue -= OnBeatLengthChange;

            OverlayNavigator.Hide <HomeMenuOverlay>();
        }
예제 #2
0
        /// <summary>
        /// Hides the current menu overlay.
        /// </summary>
        private void HideMenu()
        {
            var menu = currentOverlay.Value;

            if (menu == null)
            {
                return;
            }

            ReleaseMenu();
            OverlayNavigator.Hide(menu);
        }
예제 #3
0
 /// <summary>
 /// Attempts to hide the home menu overlay.
 /// </summary>
 public void HideMenu() => OverlayNavigator.Hide <HomeMenuOverlay>();
예제 #4
0
 /// <summary>
 /// Closes the quick menu overlay.
 /// </summary>
 private void CloseQuickMenu() => OverlayNavigator.Hide <QuickMenuOverlay>();
예제 #5
0
 /// <summary>
 /// Navigates to the next specified screen.
 /// </summary>
 private void NavigateToScreen <T>()
     where T : MonoBehaviour, INavigationView
 {
     ScreenNavigator.Show <T>();
     OverlayNavigator.Hide <GameLoadOverlay>();
 }
예제 #6
0
 /// <summary>
 /// Closes the pause overlay.
 /// </summary>
 private void CloseOverlay()
 {
     OverlayNavigator.Hide <PauseOverlay>();
 }
예제 #7
0
 /// <summary>
 /// Hides the offsets overlay.
 /// </summary>
 public void CloseOffsets()
 {
     OverlayNavigator.Hide <OffsetsOverlay>();
 }
예제 #8
0
 /// <summary>
 /// Closes the dialog.
 /// </summary>
 public void CloseDialog()
 {
     OverlayNavigator.Hide <DialogOverlay>();
 }