You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
299 B
22 lines
299 B
import FloatNode from '../inputs/FloatNode.js';
|
|
import { NodeUpdateType } from '../core/constants.js';
|
|
|
|
class TimerNode extends FloatNode {
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
this.updateType = NodeUpdateType.Frame;
|
|
|
|
}
|
|
|
|
update( frame ) {
|
|
|
|
this.value = frame.time;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default TimerNode;
|
|
|