mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
23 lines
450 B
JavaScript
23 lines
450 B
JavaScript
/**
|
|
* @author sunag / http://www.sunag.com.br/
|
|
*/
|
|
|
|
THREE.TimerNode = function( value, scale ) {
|
|
|
|
THREE.FloatNode.call( this, value );
|
|
|
|
this.requestUpdate = true;
|
|
|
|
this.scale = scale !== undefined ? scale : 1;
|
|
|
|
};
|
|
|
|
THREE.TimerNode.prototype = Object.create( THREE.FloatNode.prototype );
|
|
THREE.TimerNode.prototype.constructor = THREE.TimerNode;
|
|
|
|
THREE.TimerNode.prototype.updateFrame = function( delta ) {
|
|
|
|
this.number += delta * this.scale;
|
|
|
|
};
|