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