mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
parent
2d60fe4565
commit
6e92ea4d29
@ -157,11 +157,13 @@ class UncivGame(parameters: UncivGameParameters) : Game() {
|
|||||||
// This is ALWAYS called after create() on Android - google "Android life cycle"
|
// This is ALWAYS called after create() on Android - google "Android life cycle"
|
||||||
override fun resume() {
|
override fun resume() {
|
||||||
super.resume()
|
super.resume()
|
||||||
|
musicController.resume()
|
||||||
if (!isInitialized) return // The stuff from Create() is still happening, so the main screen will load eventually
|
if (!isInitialized) return // The stuff from Create() is still happening, so the main screen will load eventually
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun pause() {
|
override fun pause() {
|
||||||
if (isGameInfoInitialized()) GameSaver.autoSave(this.gameInfo)
|
if (isGameInfoInitialized()) GameSaver.autoSave(this.gameInfo)
|
||||||
|
musicController.pause()
|
||||||
super.pause()
|
super.pause()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user