From 58e688c398caad6a891c2477bf179c614bdb38c3 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 25 Nov 2017 15:55:32 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (a2ow5l92js.js) 98 bytes modified --- a2ow5l92js.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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');