Update: CC - Before Render - Moorcow (zo950m57cc.js) 289 bytes modified
parent
85657e9c8f
commit
41c30766de
|
@ -786,17 +786,25 @@
|
||||||
mesh.burnLife -= 0.1 * data.delta;
|
mesh.burnLife -= 0.1 * data.delta;
|
||||||
if (mesh.burnLife < 0) {
|
if (mesh.burnLife < 0) {
|
||||||
mesh.burnLife = 0;
|
mesh.burnLife = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
mesh.instance.material.color.setRGB(
|
||||||
|
mesh.burnLife,
|
||||||
|
mesh.burnLife,
|
||||||
|
mesh.burnLife
|
||||||
|
);
|
||||||
|
|
||||||
|
if (mesh.burnLife <= 0) {
|
||||||
mesh.explodeLife -= 0.1 * data.delta;
|
mesh.explodeLife -= 0.1 * data.delta;
|
||||||
if (mesh.explodeLife < 0) {
|
if (mesh.explodeLife < 0) {
|
||||||
mesh.explodeLife = 0;
|
mesh.explodeLife = 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
mesh.instance.material.color.setRGB(
|
mesh.instance.material.color.setRGB(
|
||||||
1 - mesh.explodeLife,
|
1 - mesh.explodeLife,
|
||||||
mesh.burnLife,
|
0,
|
||||||
mesh.burnLife
|
0
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (mesh.explodeLife <= 0) {
|
if (mesh.explodeLife <= 0) {
|
||||||
this.explode(mesh);
|
this.explode(mesh);
|
||||||
|
|
Loading…
Reference in New Issue