Skip to content

Commit

Permalink
pause unloads assets on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
minenice55 committed Jan 22, 2024
1 parent ca742c8 commit 8348eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/UI/PauseMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void OnQuit()
isQuitting = true;
SoundByte.PlayOneShot("ui/PauseQuit");
GameManager.instance.CircleCursor.LockCursor(false);
GlobalGameManager.LoadScene("Title", 0, 0.35f);
GlobalGameManager.LoadScene("Title", 0, 0.35f, callback: GameManager.instance.DestroyGame);
}

void OnSettings()
Expand All @@ -245,4 +245,4 @@ void OnSettings()
settingsDialog.SwitchSettingsDialog();
}
}
}
}

0 comments on commit 8348eaa

Please sign in to comment.