mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-23 04:51:38 +02:00
add an example timer script
This commit is contained in:
parent
d2fd4bf445
commit
a7f2406505
1 changed files with 5 additions and 0 deletions
5
examples/timer.js
Normal file
5
examples/timer.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
var timer = new Timer();
|
||||
timer.interval = 1000;
|
||||
timer.singleShot = true; // set this is you only want the timer to fire once
|
||||
timer.timeout.connect(function() { print("TIMER FIRED!"); });
|
||||
timer.start();
|
Loading…
Reference in a new issue