24 lines
613 B
JavaScript
24 lines
613 B
JavaScript
if (data.entity === this.parentEntity) {
|
|
console.log('cyber-security.berlin entity loaded');
|
|
} else {
|
|
return;
|
|
}
|
|
|
|
/**
|
|
* Code Components
|
|
*/
|
|
this.beforeRender = R3.EntityManager.Instance.findComponentById('y2q95ipdcf');
|
|
this.innerCircle = R3.EntityManager.Instance.findComponentById('ix41c5pelj');
|
|
this.outerCircle = R3.EntityManager.Instance.findComponentById('zx8oaonomw');
|
|
|
|
this.beforeRender.entityLoaded = this;
|
|
|
|
R3.CustomCode.prototype.render = function(delta) {
|
|
|
|
this.innerCircle.rotation.y += delta;
|
|
this.innerCircle.updateInstance('rotation');
|
|
|
|
}
|
|
|
|
return null;
|
|
//@ sourceURL=CustomCode (2c1eswtjvb).js
|