r3-custom-code/60mpr5snmo.js

52 lines
2.0 KiB
JavaScript
Raw Normal View History

if (this.parentEntity === data.entity) {
console.log('Entity SpoonLib Loaded');
this.animationSystem = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.SYSTEM_ANIMATION)[0];
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('uou2i9be9r');
this.touchStart = GameLib.EntityManager.Instance.findComponentById('9m43m5angb');
this.touchMove = GameLib.EntityManager.Instance.findComponentById('ktf4wzckvh');
this.touchEnd = GameLib.EntityManager.Instance.findComponentById('r17o00dvgo');
this.mouseUp = GameLib.EntityManager.Instance.findComponentById('abw1ga2etc');
this.mouseDown = GameLib.EntityManager.Instance.findComponentById('f3b90qedii');
this.mouseWheel = GameLib.EntityManager.Instance.findComponentById('opxis1pjmo');
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('arswdj0syh');
this.cylinder = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq');
this.keyUp = GameLib.EntityManager.Instance.findComponentById('opxis1pjmo');
this.camera = GameLib.EntityManager.Instance.findComponentById('32sdim4koy');
this.textCanvas = GameLib.EntityManager.Instance.findComponentById('c8tk5ha6nw');
this.textTexture = GameLib.EntityManager.Instance.findComponentById('eprfl2ynkx');
this.particleEngine = GameLib.EntityManager.Instance.findComponentById('l60d7ra270');
this.particle = GameLib.EntityManager.Instance.findComponentById('mvo0gyajun');
this.camera2d = GameLib.EntityManager.Instance.findComponentById('majq7lytaz');
this.audioDrone = GameLib.EntityManager.Instance.findComponentById('4m7djsbvpf');
this.beforeRender.entityLoaded = this;
this.keyUp.entityLoaded = this;
this.touchStart.entityLoaded = this;
this.touchMove.entityLoaded = this;
this.touchEnd.entityLoaded = this;
this.mouseUp.entityLoaded = this;
this.mouseDown.entityLoaded = this;
this.mouseWheel.entityLoaded = this;
this.mouseMove.entityLoaded = this;
GameLib.Event.Emit(
GameLib.Event.PLAY_AUDIO,
{
name : 'Audio - Drone'
}
);
}
//@ sourceURL=SpoonLibEntityLoaded.js