From 935288518d77b92b297645c3ac0cbb4eb830fc1a Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 14 Sep 2018 18:04:47 +0100 Subject: [PATCH] Added `isPaused` method --- src/scene/Systems.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/scene/Systems.js b/src/scene/Systems.js index 2761f9248..6db0f9a60 100644 --- a/src/scene/Systems.js +++ b/src/scene/Systems.js @@ -482,6 +482,19 @@ var Systems = new Class({ 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? *