Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 2 bytes modified

beta.r3js.org
-=yb4f310 2017-11-02 11:48:53 +01:00
parent 99eb469bd0
commit 22ae950b70
1 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,7 @@ if (
GameLib.Utils.UndefinedOrNull(this.camera) ||
GameLib.Utils.UndefinedOrNull(this.scene) ||
GameLib.Utils.UndefinedOrNull(this.sceneCrosshair)
// true
//|| true
) {
/**
@ -40,7 +40,6 @@ if (
);
}
this.boxMaterial = GameLib.EntityManager.Instance.findComponentById('dsaua5t19a');
this.tree = GameLib.EntityManager.Instance.findComponentById('fcj62ukx5s');
@ -65,9 +64,8 @@ if (
this.tree.updateInstance();
this.nextSpawnTime = this.getNextSpawnTime();
}
this.spawnEnemy = function() {
this.spawnEnemy = function() {
var enemyType = Math.floor((Math.random() * 5) + 1);
@ -127,6 +125,7 @@ if (
this.enemies.push(enemy);
}
}
this.totalTime += data.delta;
this.spawnTime += data.delta;