2017-11-09 10:13:49 +01:00
|
|
|
if (this.parentEntity === data.entity) {
|
|
|
|
console.log('my entity loaded :)');
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.enemies = [];
|
|
|
|
|
2018-04-10 15:48:32 +02:00
|
|
|
var particle = R3.EntityManager.Instance.findComponentById('ks1yk4yi1n');
|
2017-11-09 10:13:49 +01:00
|
|
|
particle.instance.visible = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Min and max spawn time is in seconds
|
|
|
|
*/
|
2018-04-10 15:48:32 +02:00
|
|
|
R3.D3.CustomCode.MIN_SPAWN_TIME = 1;
|
|
|
|
R3.D3.CustomCode.MAX_SPAWN_TIME = 4;
|
2017-11-09 10:13:49 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tell all our custom code components that we loaded
|
|
|
|
*/
|
2018-04-10 15:48:32 +02:00
|
|
|
this.beforeRender = R3.EntityManager.Instance.findComponentById('oh07330eg6');
|
2017-11-09 10:13:49 +01:00
|
|
|
this.beforeRender.entityLoaded = this;
|
|
|
|
|
2018-04-10 15:48:32 +02:00
|
|
|
this.mouseUp = R3.EntityManager.Instance.findComponentById('jujvqjffqw');
|
2017-11-09 10:13:49 +01:00
|
|
|
this.mouseUp.entityLoaded = this;
|
|
|
|
|
2018-04-10 15:48:32 +02:00
|
|
|
this.mouseDown = R3.EntityManager.Instance.findComponentById('56if6ltmvm');
|
2017-11-09 10:13:49 +01:00
|
|
|
this.mouseDown.entityLoaded = this;
|
|
|
|
|
2018-04-10 15:48:32 +02:00
|
|
|
this.mouseMove = R3.EntityManager.Instance.findComponentById('0krv8dcow2');
|
2017-11-09 10:13:49 +01:00
|
|
|
this.mouseMove.entityLoaded = this;
|
|
|
|
|
|
|
|
/**
|
2017-11-09 11:06:32 +01:00
|
|
|
* Don't plant any trees for Olcayto
|
2017-11-09 10:13:49 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
//@ sourceURL=entityLoaded.js
|