diff --git a/o73bkh2tlq.js b/o73bkh2tlq.js index 9eda0ca..2eb0df7 100644 --- a/o73bkh2tlq.js +++ b/o73bkh2tlq.js @@ -33,12 +33,13 @@ this.mouseMove.entityLoaded = this; /** * Create references to all our 'in game' objects */ -this.bull = GameLib.EntityManager.Instance.findComponentById('y1op9hp8dz'); -this.star = GameLib.EntityManager.Instance.findComponentById('tmut3carec'); +this.bull = GameLib.EntityManager.Instance.findComponentById('y1op9hp8dz'); +this.star = GameLib.EntityManager.Instance.findComponentById('tmut3carec'); this.burger = GameLib.EntityManager.Instance.findComponentById('j88zs01szc'); this.parcel = GameLib.EntityManager.Instance.findComponentById('l91pfxkwml'); -this.camera = GameLib.EntityManager.Instance.findComponentById('k9ain64rlp'); +this.camera = GameLib.EntityManager.Instance.findComponentById('k9ain64rlp'); +this.scene = GameLib.EntityManager.Instance.findComponentById('q1f5n01iqk'); GameLib.Event.Emit( GameLib.Event.GET_GRAPHICS_IMPLEMENTATION, @@ -48,8 +49,8 @@ GameLib.Event.Emit( }.bind(this) ); -this.mouse = new GameLib.Mouse(this.graphics); -this.raycaster = new GameLib.D3.Raycaster(this.graphics); +this.mouse = new GameLib.Mouse(this.graphics); +this.raycaster = new GameLib.D3.Raycaster(this.graphics); /** * Link some objects for MouseMove component @@ -57,6 +58,7 @@ this.raycaster = new GameLib.D3.Raycaster(this.graphics); this.mouseMove.mouse = this.mouse; this.mouseMove.raycaster = this.raycaster; this.mouseMove.camera = this.camera; +this.mouseMove.scene = this.scene; /** * Plant all our trees