diff --git a/a2ow5l92js.js b/a2ow5l92js.js index 1e3014f..5c9d7ef 100644 --- a/a2ow5l92js.js +++ b/a2ow5l92js.js @@ -41,6 +41,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.star = this.entityLoaded.star; this.santa = this.entityLoaded.santa; this.scene = this.entityLoaded.scene; + this.camera = this.entityLoaded.camera; this.burger = this.entityLoaded.burger; this.parcel = this.entityLoaded.parcel; this.renderer = this.entityLoaded.renderer; @@ -437,12 +438,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.drawScore = function(enemy) { - /*var scoreMesh = this.scoreMesh.clone(); - scoreMesh.position = enemy.mesh.position.clone(); - - var scoreTexture = this.scoreTexture.clone(); - scoreMesh.materials[0].instance.map = scoreTexture.instance; - */ + this.scoreMesh.instance.quaternion.copy(this.camera.instance.quaternion); this.scoreMesh.position = enemy.mesh.position.clone(); this.scoreMesh.updateInstance('position');