mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Pausing the game will now mute audio and resuming will un-mute, unless it was muted via the game (fixes #439)
This commit is contained in:
+2
-2
@@ -736,7 +736,7 @@ Phaser.Game.prototype = {
|
||||
{
|
||||
this._paused = true;
|
||||
this.time.gamePaused(time);
|
||||
this.sound.mute = true;
|
||||
this.sound.setMute();
|
||||
this.onPause.dispatch(this);
|
||||
}
|
||||
|
||||
@@ -755,7 +755,7 @@ Phaser.Game.prototype = {
|
||||
this._paused = false;
|
||||
this.time.gameResumed(time);
|
||||
this.input.reset();
|
||||
this.sound.mute = false;
|
||||
this.sound.unsetMute();
|
||||
this.onResume.dispatch(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user