17 lines
375 B
JavaScript
17 lines
375 B
JavaScript
|
if (this.parentEntity === data.entity) {
|
||
|
console.log('my entity loaded :)');
|
||
|
} else {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
this.enemies = [];
|
||
|
|
||
|
/**
|
||
|
* Min and max spawn time is in seconds
|
||
|
*/
|
||
|
GameLib.D3.CustomCode.MIN_SPAWN_TIME = 1;
|
||
|
GameLib.D3.CustomCode.MAX_SPAWN_TIME = 4;
|
||
|
|
||
|
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('9l6o7974qx');
|
||
|
this.beforeRender.entityLoaded = this;
|