mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
onLoadUpdate now recives the last ( 100 ) update.
This commit is contained in:
parent
c9c85330ab
commit
1c65c48341
2 changed files with 8 additions and 2 deletions
|
@ -588,6 +588,12 @@ Phaser.StateManager.prototype = {
|
|||
*/
|
||||
loadComplete: function () {
|
||||
|
||||
// Make sure to do load-update one last time before state is set to _created
|
||||
if(this.onLoadUpdateCallback)
|
||||
{
|
||||
this.onLoadUpdateCallback.call(this.callbackContext, this.game);
|
||||
}
|
||||
|
||||
if (this._created === false && this.onCreateCallback)
|
||||
{
|
||||
this._created = true;
|
||||
|
|
|
@ -1883,10 +1883,10 @@ Phaser.Loader.prototype = {
|
|||
|
||||
this.onLoadComplete.dispatch();
|
||||
|
||||
this.reset();
|
||||
|
||||
this.game.state.loadComplete();
|
||||
|
||||
this.reset();
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue