From 46a3b3b7f1000c9893730b47a2aedfa6ac8215a5 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 8 Mar 2018 11:44:29 +0100 Subject: [PATCH] Initial Commit: CC - SnailRunner - Entity Loaded (3csgf2ng51.js) --- 3csgf2ng51.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 3csgf2ng51.js diff --git a/3csgf2ng51.js b/3csgf2ng51.js new file mode 100644 index 0000000..74d035e --- /dev/null +++ b/3csgf2ng51.js @@ -0,0 +1,27 @@ +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 \ No newline at end of file