mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
SceneManager invokes resize method on all Systems.
This commit is contained in:
parent
e44ce76214
commit
e6059f65cd
1 changed files with 20 additions and 0 deletions
|
@ -365,6 +365,26 @@ var SceneManager = new Class({
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
* @method Phaser.Scenes.SceneManager#resize
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @param {number} width - The new width of the game.
|
||||
* @param {number} height - The new height of the game.
|
||||
*/
|
||||
resize: function (width, height)
|
||||
{
|
||||
// Loop through the scenes in forward order
|
||||
for (var i = 0; i < this.scenes.length; i++)
|
||||
{
|
||||
var sys = this.scenes[i].sys;
|
||||
|
||||
sys.resize(width, height);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue