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