Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 248 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 19:34:35 +01:00
parent a5d97482f2
commit 0cddf7cf86
1 changed files with 8 additions and 0 deletions

View File

@ -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)