Initial Commit: CC - Mouse Down (ahm5t3rg19.js)
parent
40a6ebc340
commit
a2b7701ebb
|
@ -0,0 +1,26 @@
|
|||
if (!this.entityLoaded) {
|
||||
return;
|
||||
}
|
||||
|
||||
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;
|
||||
this.throwerParticleEngine.updateInstance('particlesPerSecond');
|
||||
this.throwerParticleEngine.templateParticle.speed = 300;
|
||||
this.throwerParticleEngine.templateParticle.scale.x = 15;
|
||||
|
||||
|
||||
return null;
|
||||
//@ sourceURL=mouseDown.js
|
Loading…
Reference in New Issue