Update: CC - Before Render - Moorcow (to6trvr3fj.js) 36 bytes modified
parent
5aa1d1117b
commit
cacd46527a
|
@ -343,17 +343,17 @@ if (this.mouseIsDown) {
|
||||||
/**
|
/**
|
||||||
* This happens to trees
|
* This happens to trees
|
||||||
*/
|
*/
|
||||||
if (GameLib.Utils.UndefinedOrNull(mesh.userData.life)) {
|
if (GameLib.Utils.UndefinedOrNull(mesh.life)) {
|
||||||
mesh.userData.life = 1.2;
|
mesh.life = 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.userData.life -= 0.2;
|
mesh.life -= 0.2;
|
||||||
|
|
||||||
|
|
||||||
// Don't do the color instance
|
// Don't do the color instance
|
||||||
//mesh.materials[0].color.instance = mesh.instance.material.color;
|
//mesh.materials[0].color.instance = mesh.instance.material.color;
|
||||||
|
|
||||||
if (mesh.userData.life <= 0) {
|
if (mesh.life <= 0) {
|
||||||
this.burnTree(mesh);
|
this.burnTree(mesh);
|
||||||
|
|
||||||
if (mesh.instance.material.emissive) {
|
if (mesh.instance.material.emissive) {
|
||||||
|
|
Loading…
Reference in New Issue