pause unloads assets on exit
This commit is contained in:
parent
ca742c8567
commit
8348eaa283
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue