2018-03-07 14:06:26 +01:00
|
|
|
if (data.entity === this.parentEntity) {
|
|
|
|
console.log('snail runner loaded');
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom Code Components
|
|
|
|
*/
|
2018-04-10 15:48:32 +02:00
|
|
|
this.beforeRender = R3.EntityManager.Instance.findComponentById('rlley2ki2i');
|
|
|
|
this.mouseMove = R3.EntityManager.Instance.findComponentById('8nu6b5p9pb');
|
2018-03-07 14:06:26 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Meshes
|
|
|
|
*/
|
2018-04-10 15:48:32 +02:00
|
|
|
this.road = R3.EntityManager.Instance.findComponentById('07f38e7wvv');
|
|
|
|
this.snail = R3.EntityManager.Instance.findComponentById('dbpoic48wm');
|
|
|
|
this.cloud = R3.EntityManager.Instance.findComponentById('y5ckpgqf0z');
|
|
|
|
this.solar = R3.EntityManager.Instance.findComponentById('yoy8llsbtn');
|
2018-03-07 14:06:26 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Activate our custom code components
|
|
|
|
*/
|
2018-03-07 16:17:30 +01:00
|
|
|
this.beforeRender.entityLoaded = this;
|
|
|
|
this.mouseMove.entityLoaded = this;
|
2018-03-07 14:06:26 +01:00
|
|
|
|
2018-03-07 14:01:08 +01:00
|
|
|
//@ sourceURL=entityLoaded.js
|