We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9c8533 commit 1c65c48Copy full SHA for 1c65c48
2 files changed
src/core/StateManager.js
@@ -588,6 +588,12 @@ Phaser.StateManager.prototype = {
588
*/
589
loadComplete: function () {
590
591
+ // Make sure to do load-update one last time before state is set to _created
592
+ if(this.onLoadUpdateCallback)
593
+ {
594
+ this.onLoadUpdateCallback.call(this.callbackContext, this.game);
595
+ }
596
+
597
if (this._created === false && this.onCreateCallback)
598
{
599
this._created = true;
src/loader/Loader.js
@@ -1883,10 +1883,10 @@ Phaser.Loader.prototype = {
1883
1884
this.onLoadComplete.dispatch();
1885
1886
- this.reset();
1887
-
1888
this.game.state.loadComplete();
1889
+ this.reset();
1890
},
1891
1892
/**
0 commit comments