From f5d175cb48322517cdf5eb392248afbeecbb7702 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 14 Nov 2017 08:54:47 +0100 Subject: [PATCH] Update: CC - Mouse Down (rciyhwg65b.js) 327 bytes modified --- rciyhwg65b.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rciyhwg65b.js b/rciyhwg65b.js index 0299d25..ecf4cc8 100644 --- a/rciyhwg65b.js +++ b/rciyhwg65b.js @@ -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;