From 068124b73967c306537bba28398e0d0766ef1b03 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 29 Nov 2018 13:43:44 +0000 Subject: [PATCH] Added sceneManager property. --- src/loader/LoaderPlugin.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/loader/LoaderPlugin.js b/src/loader/LoaderPlugin.js index 46ae0c70d..51315b9a3 100644 --- a/src/loader/LoaderPlugin.js +++ b/src/loader/LoaderPlugin.js @@ -100,6 +100,16 @@ var LoaderPlugin = new Class({ */ this.textureManager = scene.sys.textures; + /** + * A reference to the global Scene Manager. + * + * @name Phaser.Loader.LoaderPlugin#sceneManager + * @type {Phaser.Scenes.SceneManager} + * @protected + * @since 3.16.0 + */ + this.sceneManager = scene.sys.game.scene; + // Inject the available filetypes into the Loader FileTypesManager.install(this); @@ -1089,6 +1099,7 @@ var LoaderPlugin = new Class({ this.systems = null; this.textureManager = null; this.cacheManager = null; + this.sceneManager = null; } });