2017-11-13 09:44:04 +01:00
|
|
|
if (!this.entityLoaded) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-11-14 08:54:47 +01:00
|
|
|
if (!this.initialized) {
|
|
|
|
this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine;
|
|
|
|
this.beforeRender = this.entityLoaded.beforeRender;
|
|
|
|
this.mouseMove = this.entityLoaded.mouseMove;
|
|
|
|
// this.renderer = this.entityLoaded.renderer;
|
|
|
|
this.initialized = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.beforeRender.mouseIsDown = false;
|
|
|
|
this.mouseMove.mouseIsDown = false;
|
2017-11-13 15:06:50 +01:00
|
|
|
|
|
|
|
this.throwerParticleEngine.templateParticle.speed = 5;
|
|
|
|
this.throwerParticleEngine.particlesPerSecond = 5;
|
|
|
|
this.throwerParticleEngine.updateInstance('particlesPerSecond');
|
|
|
|
this.throwerParticleEngine.templateParticle.positionOffset.x = 0.3;
|
|
|
|
this.throwerParticleEngine.templateParticle.positionOffset.y = 0.3;
|
|
|
|
this.throwerParticleEngine.templateParticle.scale.x = 3;
|
2017-11-13 09:44:04 +01:00
|
|
|
|
|
|
|
return null;
|
|
|
|
//@ sourceURL=mouseUp.js
|