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) {
|
this.getNextMesh = function(meshType) {
|
||||||
|
|
||||||
var mesh = this.meshes[meshType].reduce(
|
var mesh = null;
|
||||||
function(result, object) {
|
|
||||||
|
|
||||||
if (object.inUse === false) {
|
for (var i = 0; i < this.meshes[meshType].length; i++) {
|
||||||
object.inUse = true;
|
if (this.meshes[meshType][i].inUse === false) {
|
||||||
result = object.mesh;
|
this.meshes[meshType][i].inUse = true;
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
null
|
|
||||||
);
|
|
||||||
|
|
||||||
|
mesh = this.meshes[meshType][i].mesh;
|
||||||
mesh.burnLife = 1;
|
mesh.burnLife = 1;
|
||||||
mesh.explodeLife = 1;
|
mesh.explodeLife = 1;
|
||||||
mesh.instance.material.color.set(1,1,1);
|
mesh.instance.material.color.set(1,1,1);
|
||||||
|
|
||||||
return mesh;
|
return mesh;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
this.spawnEnemy = function(kanister) {
|
this.spawnEnemy = function(kanister) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue