Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Makes the user exit the game back to preparation screen.
 /// </summary>
 public void ExitGameForceful() => ScreenNavigator.Show <PrepareScreen>();
Ejemplo n.º 3
0
 /// <summary>
 /// Attempts to navigate to songs selection screen for play.
 /// </summary>
 public void PlayGame()
 {
     ScreenNavigator.Show <SongsScreen>();
     HideMenu();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Attempts to navigate to download screen.
 /// </summary>
 public void DownloadMaps()
 {
     ScreenNavigator.Show <DownloadScreen>();
     HideMenu();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Navigates away to the next view.
 /// </summary>
 public void NavigateToNext()
 {
     OverlayNavigator.Show <SystemOverlay>();
     OverlayNavigator.Show <BackgroundOverlay>();
     ScreenNavigator.Show <HomeScreen>();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Navigates to the next specified screen.
 /// </summary>
 private void NavigateToScreen <T>()
     where T : MonoBehaviour, INavigationView
 {
     ScreenNavigator.Show <T>();
     OverlayNavigator.Hide <GameLoadOverlay>();
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 8
0
 /// <summary>
 /// Navigates back to songs screen.
 /// </summary>
 public void NavigateToSongs() => ScreenNavigator.Show <SongsScreen>();
Ejemplo n.º 9
0
 /// <summary>
 /// Navigates back to prepare screen.
 /// </summary>
 public void ToPrepare() => ScreenNavigator.Show <PrepareScreen>();