diff --git a/21g30t1e75.js b/21g30t1e75.js index 4d768fe..11fe8b2 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -83,6 +83,7 @@ this.runtime = GameLib.Utils.GetRuntime(); this.beforeRender = GameLib.EntityManager.Instance.findComponentById('zjq6ach3jt'); this.keyUp = GameLib.EntityManager.Instance.findComponentById('306204wy29'); this.touchEnd = GameLib.EntityManager.Instance.findComponentById('0j2wxrtdf2'); +this.mouseDown = GameLib.EntityManager.Instance.findComponentById('gzewp2awcf'); /** * Geometries @@ -1793,6 +1794,9 @@ GameLib.Event.Subscribe( this.touchEnd.initialized = false; this.touchEnd.entityLoaded = this; + + this.mouseDown.initialized = false; + this.mouseDown.entityLoaded = this; console.log('starting game snake'); }.bind(this) @@ -1811,6 +1815,9 @@ GameLib.Event.Subscribe( this.touchEnd.initialized = false; this.touchEnd.entityLoaded = null; + this.mouseDown.initialized = false; + this.mouseDown.entityLoaded = null; + console.log('starting game snake'); }.bind(this) )