From 0cddf7cf86a32e39fbb4d1d70f5f6801a288b555 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 19:34:35 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 248 bytes modified --- 21g30t1e75.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/21g30t1e75.js b/21g30t1e75.js index 7d9154c..c421463 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -82,10 +82,12 @@ this.runtime = GameLib.Utils.GetRuntime(); */ this.beforeRender = GameLib.EntityManager.Instance.findComponentById('zjq6ach3jt'); this.keyUp = GameLib.EntityManager.Instance.findComponentById('306204wy29'); +this.touchStart = GameLib.EntityManager.Instance.findComponentById('0cw20zm4g7'); this.touchEnd = GameLib.EntityManager.Instance.findComponentById('0j2wxrtdf2'); this.mouseDown = GameLib.EntityManager.Instance.findComponentById('gzewp2awcf'); this.mouseUp = GameLib.EntityManager.Instance.findComponentById('ckplg6wqnl'); + /** * Geometries */ @@ -1843,6 +1845,9 @@ GameLib.Event.Subscribe( this.mouseUp.initialized = false; this.mouseUp.entityLoaded = this; + + this.touchStart.initialized = false; + this.touchStart.entityLoaded = this; console.log('starting game snake'); }.bind(this) @@ -1866,6 +1871,9 @@ GameLib.Event.Subscribe( this.mouseUp.initialized = false; this.mouseUp.entityLoaded = null; + + this.touchStart.initialized = false; + this.touchStart.entityLoaded = null; console.log('starting game snake'); }.bind(this)