Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 248 bytes modified
parent
a5d97482f2
commit
0cddf7cf86
|
@ -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
|
||||
*/
|
||||
|
@ -1844,6 +1846,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)
|
||||
);
|
||||
|
@ -1867,6 +1872,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)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue