Added isPaused method

This commit is contained in:
Richard Davey 2018-09-14 18:04:47 +01:00
parent 4c6b2cc183
commit 935288518d

View file

@ -482,6 +482,19 @@ var Systems = new Class({
return (this.settings.status === CONST.RUNNING); return (this.settings.status === CONST.RUNNING);
}, },
/**
* Is this Scene paused?
*
* @method Phaser.Scenes.Systems#isPaused
* @since 3.13.0
*
* @return {boolean} `true` if this Scene is paused, otherwise `false`.
*/
isPaused: function ()
{
return (this.settings.status === CONST.PAUSED);
},
/** /**
* Is this Scene currently transitioning out to, or in from another Scene? * Is this Scene currently transitioning out to, or in from another Scene?
* *