27 lines
752 B
JavaScript
27 lines
752 B
JavaScript
if (data.entity === this.parentEntity) {
|
|
console.log('snail runner loaded');
|
|
} else {
|
|
return;
|
|
}
|
|
|
|
/**
|
|
* Custom Code Components
|
|
*/
|
|
this.beforeRender = R3.EntityManager.Instance.findComponentById('m0ee24mqoy');
|
|
this.mouseMove = R3.EntityManager.Instance.findComponentById('sossh1zbtq');
|
|
|
|
/**
|
|
* Meshes
|
|
*/
|
|
this.road = R3.EntityManager.Instance.findComponentById('zhrnmn1spo');
|
|
this.snail = R3.EntityManager.Instance.findComponentById('q7jfofpn27');
|
|
this.cloud = R3.EntityManager.Instance.findComponentById('78z72xqfhg');
|
|
this.solar = R3.EntityManager.Instance.findComponentById('1rqrv0u18w');
|
|
|
|
/**
|
|
* Activate our custom code components
|
|
*/
|
|
this.beforeRender.entityLoaded = this;
|
|
this.mouseMove.entityLoaded = this;
|
|
|
|
//@ sourceURL=entityLoaded.js
|