Removed game argument and added boot method

This commit is contained in:
Richard Davey 2017-08-15 23:37:38 +01:00
parent 1e6659b2ef
commit b769e2cb3d
4 changed files with 13 additions and 7 deletions

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: '37876e10-8162-11e7-b191-e9a855a11647'
build: 'f5b4c910-8206-11e7-8218-8feae436c0f1'
};
module.exports = CHECKSUM;

View file

@ -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)

View file

@ -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)

View file

@ -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 = [];