Update: CC - Before Render - Moorcow (7p8dxknb7m.js) 127 bytes modified

beta.r3js.org
-=yb4f310 2017-11-15 19:35:28 +01:00
parent 3db0602f1b
commit 255768044b
1 changed files with 6 additions and 6 deletions

View File

@ -17,11 +17,11 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.scene = this.entityLoaded.scene;
this.smokeParticleEngine = this.entityLoaded.smokeParticleEngine;
this.fireParticleEngine = this.entityLoaded.fireParticleEngine;
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
this.toBlack = new THREE.Color(0.05, 0.05, 0.05);
this.toRed = new THREE.Color(0.02, 0, 0);
this.bull.instance.visible = false;
this.star.instance.visible = false;
this.burger.instance.visible = false;
@ -233,11 +233,11 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
mesh.smokeParticleEngine = smokeParticleEngine;
var fireParticleEngine = this.fireParticleEngine.clone();
fireParticleEngine.position = mesh.position.clone();
fireParticleEngine.updateInstance('position');
fireParticleEngine.enabled = true;
mesh.fireParticleEngine = fireParticleEngine;
var burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
burningTreeParticleEngine.position = mesh.position.clone();
burningTreeParticleEngine.updateInstance('position');
burningTreeParticleEngine.enabled = true;
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
}
}
}