コード例 #1
0
        /// <summary>
        /// Makes the user exit the game with a clear result.
        /// </summary>
        public void ExitGameToResult()
        {
            var record = currentParameter.Record ?? lastRecord;
            var screen = ScreenNavigator.Show <ResultScreen>();

            screen.Model.Setup(currentParameter.Map, record);
        }
コード例 #2
0
 /// <summary>
 /// Makes the user exit the game back to preparation screen.
 /// </summary>
 public void ExitGameForceful() => ScreenNavigator.Show <PrepareScreen>();
コード例 #3
0
 /// <summary>
 /// Attempts to navigate to songs selection screen for play.
 /// </summary>
 public void PlayGame()
 {
     ScreenNavigator.Show <SongsScreen>();
     HideMenu();
 }
コード例 #4
0
 /// <summary>
 /// Attempts to navigate to download screen.
 /// </summary>
 public void DownloadMaps()
 {
     ScreenNavigator.Show <DownloadScreen>();
     HideMenu();
 }
コード例 #5
0
 /// <summary>
 /// Navigates away to the next view.
 /// </summary>
 public void NavigateToNext()
 {
     OverlayNavigator.Show <SystemOverlay>();
     OverlayNavigator.Show <BackgroundOverlay>();
     ScreenNavigator.Show <HomeScreen>();
 }
コード例 #6
0
 /// <summary>
 /// Navigates to the next specified screen.
 /// </summary>
 private void NavigateToScreen <T>()
     where T : MonoBehaviour, INavigationView
 {
     ScreenNavigator.Show <T>();
     OverlayNavigator.Hide <GameLoadOverlay>();
 }
コード例 #7
0
        /// <summary>
        /// Navigates away to the results screen to view the specified record.
        /// </summary>
        public void NavigateToResults(IRecord record)
        {
            var resultScreen = ScreenNavigator.Show <ResultScreen>();

            resultScreen.Model.Setup(SelectedMap.Value, record, allowRetry: false);
        }
コード例 #8
0
 /// <summary>
 /// Navigates back to songs screen.
 /// </summary>
 public void NavigateToSongs() => ScreenNavigator.Show <SongsScreen>();
コード例 #9
0
 /// <summary>
 /// Navigates back to prepare screen.
 /// </summary>
 public void ToPrepare() => ScreenNavigator.Show <PrepareScreen>();