pause unloads assets on exit

This commit is contained in:
minenice55 2024-01-22 14:18:41 -05:00 committed by GitHub
parent ca742c8567
commit 8348eaa283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -236,7 +236,7 @@ namespace HeavenStudio.Common
isQuitting = true; isQuitting = true;
SoundByte.PlayOneShot("ui/PauseQuit"); SoundByte.PlayOneShot("ui/PauseQuit");
GameManager.instance.CircleCursor.LockCursor(false); GameManager.instance.CircleCursor.LockCursor(false);
GlobalGameManager.LoadScene("Title", 0, 0.35f); GlobalGameManager.LoadScene("Title", 0, 0.35f, callback: GameManager.instance.DestroyGame);
} }
void OnSettings() void OnSettings()
@ -245,4 +245,4 @@ namespace HeavenStudio.Common
settingsDialog.SwitchSettingsDialog(); settingsDialog.SwitchSettingsDialog();
} }
} }
} }