Update: CC - Before Render - Moorcow (7p8dxknb7m.js) 40 bytes modified
parent
81c8f8f4dd
commit
037a089511
|
@ -219,26 +219,25 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
|
||||
this.burnTree = function(mesh) {
|
||||
|
||||
if (mesh.userData.burning) {
|
||||
if (mesh.burning) {
|
||||
/**
|
||||
* Do nothing, this tree is burning
|
||||
*/
|
||||
} else {
|
||||
mesh.userData.burning = true;
|
||||
mesh.burning = true;
|
||||
|
||||
var smokeParticleEngine = this.smokeParticleEngine.clone();
|
||||
smokeParticleEngine.position = mesh.position.clone();
|
||||
smokeParticleEngine.updateInstance('position');
|
||||
smokeParticleEngine.enabled = true;
|
||||
|
||||
mesh.userData.smokeParticleEngine = smokeParticleEngine;
|
||||
mesh.smokeParticleEngine = smokeParticleEngine;
|
||||
|
||||
var fireParticleEngine = this.fireParticleEngine.clone();
|
||||
fireParticleEngine.position = mesh.position.clone();
|
||||
fireParticleEngine.updateInstance('position');
|
||||
fireParticleEngine.enabled = true;
|
||||
mesh.userData.fireParticleEngine = fireParticleEngine;
|
||||
|
||||
mesh.fireParticleEngine = fireParticleEngine;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue