Pass pauseDuration 0 for manual resume

This commit is contained in:
samme 2024-07-21 07:36:24 -07:00
parent 2824185784
commit 96bae29e62
2 changed files with 2 additions and 2 deletions

View file

@ -650,7 +650,7 @@ var Game = new Class({
if (wasPaused)
{
this.events.emit(Events.RESUME);
this.events.emit(Events.RESUME, 0);
}
},

View file

@ -13,6 +13,6 @@
* @type {string}
* @since 3.0.0
*
* @param {number} pauseDuration - The duration, in ms, that the game was paused for.
* @param {number} pauseDuration - The duration, in ms, that the game was paused for, or 0 if {@link Phaser.Game#resume} was called.
*/
module.exports = 'resume';