41 lines
892 B
JavaScript
41 lines
892 B
JavaScript
if (this.parentEntity === data.entity) {
|
|
console.log('my entity loaded :)');
|
|
} else {
|
|
return;
|
|
}
|
|
|
|
this.enemies = [];
|
|
|
|
/**
|
|
* Min and max spawn time is in seconds
|
|
*/
|
|
R3.D3.CustomCode.MIN_SPAWN_TIME = 1;
|
|
R3.D3.CustomCode.MAX_SPAWN_TIME = 4;
|
|
|
|
this.beforeRender = R3.EntityManager.Instance.findComponentById('dywmtohrda');
|
|
//this.materialRusted = R3.EntityManager.Instance.findComponentById('0mrd2dx5np');
|
|
|
|
R3.Event.Emit(
|
|
R3.Event.GET_GRAPHICS_IMPLEMENTATION,
|
|
null,
|
|
function(graphics) {
|
|
this.graphics = graphics
|
|
}.bind(this)
|
|
);
|
|
|
|
if (
|
|
!this.beforeRender
|
|
) {
|
|
console.error('components not available at runtime', this);
|
|
}
|
|
|
|
/**
|
|
* Updates the displacement scale of materialRusted
|
|
*/
|
|
//this.updateMaterialRusted = function(totalTime) {
|
|
// this.materialRusted.displacementScale = Math.sin(totalTime);
|
|
// this.materialRusted.updateInstance();
|
|
//}
|
|
|
|
return null;
|
|
//# sourceURL=entityLoaded.js
|