File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,12 @@ private AsyncOperation _LoadMenu()
108108 Scene s = SceneManager . GetSceneByName ( "GameScene" ) ;
109109 if ( s != null && s . IsValid ( ) )
110110 SceneManager . UnloadSceneAsync ( s ) ;
111+ if ( CoreDataHandler . instance . Scene != null )
112+ {
113+ s = SceneManager . GetSceneByName ( CoreDataHandler . instance . Scene ) ;
114+ if ( s != null && s . IsValid ( ) )
115+ SceneManager . UnloadSceneAsync ( s ) ;
116+ }
111117
112118 SceneManager . SetActiveScene ( SceneManager . GetSceneByName ( "MainMenu" ) ) ;
113119 } ;
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ public void ResumeGame()
283283
284284 public void QuitGame ( )
285285 {
286- Application . Quit ( ) ;
286+ CoreBooter . instance . LoadMenu ( ) ;
287287 }
288288
289289 private void _AddUnitSkillButtonListener ( Button b , int i )
You can’t perform that action at this time.
0 commit comments