Added sceneManager property.

This commit is contained in:
Richard Davey 2018-11-29 13:43:44 +00:00
parent a065bf1b46
commit 068124b739

View file

@ -100,6 +100,16 @@ var LoaderPlugin = new Class({
*/ */
this.textureManager = scene.sys.textures; 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 // Inject the available filetypes into the Loader
FileTypesManager.install(this); FileTypesManager.install(this);
@ -1089,6 +1099,7 @@ var LoaderPlugin = new Class({
this.systems = null; this.systems = null;
this.textureManager = null; this.textureManager = null;
this.cacheManager = null; this.cacheManager = null;
this.sceneManager = null;
} }
}); });