Skip to content

Commit 068124b

Browse files
committed
Added sceneManager property.
1 parent a065bf1 commit 068124b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/loader/LoaderPlugin.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ var LoaderPlugin = new Class({
100100
*/
101101
this.textureManager = scene.sys.textures;
102102

103+
/**
104+
* A reference to the global Scene Manager.
105+
*
106+
* @name Phaser.Loader.LoaderPlugin#sceneManager
107+
* @type {Phaser.Scenes.SceneManager}
108+
* @protected
109+
* @since 3.16.0
110+
*/
111+
this.sceneManager = scene.sys.game.scene;
112+
103113
// Inject the available filetypes into the Loader
104114
FileTypesManager.install(this);
105115

@@ -1089,6 +1099,7 @@ var LoaderPlugin = new Class({
10891099
this.systems = null;
10901100
this.textureManager = null;
10911101
this.cacheManager = null;
1102+
this.sceneManager = null;
10921103
}
10931104

10941105
});

0 commit comments

Comments
 (0)