mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Removed game argument and added boot method
This commit is contained in:
parent
1e6659b2ef
commit
b769e2cb3d
4 changed files with 13 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
var CHECKSUM = {
|
||||
build: '37876e10-8162-11e7-b191-e9a855a11647'
|
||||
build: 'f5b4c910-8206-11e7-8218-8feae436c0f1'
|
||||
};
|
||||
module.exports = CHECKSUM;
|
|
@ -26,8 +26,14 @@ var GameObjectFactory = new Class({
|
|||
{
|
||||
this.scene = scene;
|
||||
|
||||
this.displayList = scene.sys.displayList;
|
||||
this.updateList = scene.sys.updateList;
|
||||
this.displayList;
|
||||
this.updateList;
|
||||
},
|
||||
|
||||
boot: function ()
|
||||
{
|
||||
this.displayList = this.scene.sys.displayList;
|
||||
this.updateList = this.scene.sys.updateList;
|
||||
},
|
||||
|
||||
existing: function (child)
|
||||
|
|
|
@ -8,9 +8,9 @@ var InputManager = new Class({
|
|||
|
||||
initialize:
|
||||
|
||||
function InputManager (scene, game)
|
||||
function InputManager (scene)
|
||||
{
|
||||
SceneInputManager.call(this, scene, game);
|
||||
SceneInputManager.call(this, scene);
|
||||
},
|
||||
|
||||
pointScreenToWorldHitTest: function (gameObjects, x, y, camera)
|
||||
|
|
|
@ -5,7 +5,7 @@ var SceneManager = new Class({
|
|||
|
||||
initialize:
|
||||
|
||||
function SceneManager (scene, game)
|
||||
function SceneManager (scene)
|
||||
{
|
||||
// The Scene that owns this plugin
|
||||
this.scene = scene;
|
||||
|
@ -15,7 +15,7 @@ var SceneManager = new Class({
|
|||
this.key = scene.sys.settings.key;
|
||||
|
||||
// GlobalSceneManager
|
||||
this.manager = game.scene;
|
||||
this.manager = scene.sys.game.scene;
|
||||
|
||||
// Private
|
||||
this._queue = [];
|
||||
|
|
Loading…
Reference in a new issue