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

beta.r3js.org
-=yb4f310 2018-03-24 16:22:55 +01:00
parent 55737c25ee
commit ab3e34e85a
1 changed files with 7 additions and 0 deletions

View File

@ -82,6 +82,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');
/**
* Geometries
@ -1790,6 +1791,9 @@ GameLib.Event.Subscribe(
this.keyUp.initialized = false;
this.keyUp.entityLoaded = this;
this.touchEnd.initialized = false;
this.touchEnd.entityLoaded = this;
console.log('starting game snake');
}.bind(this)
);
@ -1804,6 +1808,9 @@ GameLib.Event.Subscribe(
this.beforeRender.initialized = false;
this.beforeRender.entityLoaded = null;
this.touchEnd.initialized = false;
this.touchEnd.entityLoaded = null;
console.log('starting game snake');
}.bind(this)
)