Skip to content

Commit b769e2c

Browse files
committed
Removed game argument and added boot method
1 parent 1e6659b commit b769e2c

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '37876e10-8162-11e7-b191-e9a855a11647'
2+
build: 'f5b4c910-8206-11e7-8218-8feae436c0f1'
33
};
44
module.exports = CHECKSUM;

v3/src/plugins/GameObjectFactory.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ var GameObjectFactory = new Class({
2626
{
2727
this.scene = scene;
2828

29-
this.displayList = scene.sys.displayList;
30-
this.updateList = scene.sys.updateList;
29+
this.displayList;
30+
this.updateList;
31+
},
32+
33+
boot: function ()
34+
{
35+
this.displayList = this.scene.sys.displayList;
36+
this.updateList = this.scene.sys.updateList;
3137
},
3238

3339
existing: function (child)

v3/src/plugins/InputManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ var InputManager = new Class({
88

99
initialize:
1010

11-
function InputManager (scene, game)
11+
function InputManager (scene)
1212
{
13-
SceneInputManager.call(this, scene, game);
13+
SceneInputManager.call(this, scene);
1414
},
1515

1616
pointScreenToWorldHitTest: function (gameObjects, x, y, camera)

v3/src/plugins/SceneManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var SceneManager = new Class({
55

66
initialize:
77

8-
function SceneManager (scene, game)
8+
function SceneManager (scene)
99
{
1010
// The Scene that owns this plugin
1111
this.scene = scene;
@@ -15,7 +15,7 @@ var SceneManager = new Class({
1515
this.key = scene.sys.settings.key;
1616

1717
// GlobalSceneManager
18-
this.manager = game.scene;
18+
this.manager = scene.sys.game.scene;
1919

2020
// Private
2121
this._queue = [];

0 commit comments

Comments
 (0)