Update: CC - Mouse Down (rciyhwg65b.js) 327 bytes modified

beta.r3js.org
-=yb4f310 2017-11-14 08:54:47 +01:00
parent aef5c76c4b
commit f5d175cb48
1 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,18 @@ if (!this.entityLoaded) {
return;
}
this.beforeRender.mouseDown = true;
if (!this.initialized) {
/**
* Link some objects for MouseDown component
*/
this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine;
this.beforeRender = this.entityLoaded.beforeRender;
this.mouseMove = this.entityLoaded.mouseMove;
this.initialized = true;
}
this.beforeRender.mouseIsDown = true;
this.mouseMove.mouseIsDown = true;
this.throwerParticleEngine.enabled = true;
this.throwerParticleEngine.particlesPerSecond = 50;