Update: CC - Before Render - Moorcow (zo950m57cc.js) 8596 bytes modified
parent
4857306bc9
commit
de18511abc
|
@ -219,25 +219,22 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
|||
|
||||
this.getNextMesh = function(meshType) {
|
||||
|
||||
var mesh = this.meshes[meshType].reduce(
|
||||
function(result, object) {
|
||||
var mesh = null;
|
||||
|
||||
if (object.inUse === false) {
|
||||
object.inUse = true;
|
||||
result = object.mesh;
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
null
|
||||
);
|
||||
for (var i = 0; i < this.meshes[meshType].length; i++) {
|
||||
if (this.meshes[meshType][i].inUse === false) {
|
||||
this.meshes[meshType][i].inUse = true;
|
||||
|
||||
mesh = this.meshes[meshType][i].mesh;
|
||||
mesh.burnLife = 1;
|
||||
mesh.explodeLife = 1;
|
||||
mesh.instance.material.color.set(1,1,1);
|
||||
|
||||
return mesh;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.spawnEnemy = function(kanister) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue