diff --git a/zo950m57cc.js b/zo950m57cc.js index ab6aec4..12e053a 100644 --- a/zo950m57cc.js +++ b/zo950m57cc.js @@ -229,7 +229,7 @@ mesh.burnLife = 1; mesh.explodeLife = 1; mesh.instance.material.color.setRGB(1,1,1); - + mesh.instance.material.opacity = 1; return mesh; } } @@ -780,7 +780,7 @@ ) { var material = mesh.materials[0]; - + if (material.name.indexOf('Trees') === -1) { mesh.burnLife -= data.delta * 3; @@ -951,9 +951,7 @@ enemy.mesh.fireParticleEngine.updateInstance('position'); } - enemy.mesh.materials[0].opacity -= 0.05 * data.delta; - enemy.mesh.materials[0].updateInstance('opacity'); - + enemy.mesh.instance.material.opacity -= 0.5 * data.delta; } result.push(enemy);