File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,13 @@ public void Retry() {
135
135
136
136
// hide the mouse and do all the things that normally happens when un-pausing
137
137
private void SetReplaysAndHideCursor ( ) {
138
+ SetReplaysFromPanel ( ) ;
139
+ FindObjectOfType < InGameUI > ( ) ? . OnPauseToggle ( false ) ;
140
+ }
141
+
142
+ public void SetReplaysFromPanel ( ) {
138
143
// overwrite ghosts if the panel is open (this can be triggered by a restart in general)
139
144
if ( competitionPanel . isActiveAndEnabled ) Game . Instance . ActiveGameReplays = competitionPanel . GetSelectedReplays ( ) ;
140
- FindObjectOfType < InGameUI > ( ) ? . OnPauseToggle ( false ) ;
141
145
}
142
146
143
147
public void LoadNextLevel ( ) {
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ private void Restart() {
131
131
StopGhosts ( ) ;
132
132
LocalPlayer . User . DisableUIInput ( ) ;
133
133
LocalPlayer . SetNightVisionEnabled ( false ) ;
134
+ _inGameUI . GameModeUIHandler . RaceResultsScreen . SetReplaysFromPanel ( ) ;
134
135
_inGameUI . GameModeUIHandler . GameModeUIText . HideGameUIText ( false ) ;
135
136
_inGameUI . GameModeUIHandler . RaceResultsScreen . Hide ( ) ;
136
137
_gameModeScore . Reset ( ) ;
You can’t perform that action at this time.
0 commit comments