Update: CC - Mouse Down (rciyhwg65b.js) 327 bytes modified
parent
aef5c76c4b
commit
f5d175cb48
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue