Skip to content

Commit

Permalink
Update task.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Trollhunters501 authored Nov 3, 2023
1 parent fe04234 commit 96a515b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/task.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
manager.createTask("tasknormal", 20 * 20);
// tasknormal é a function, e 20 * 20 é o tempo = 20 segundos, será executado depois de 20 segundos
manager.createLoopTask("taskloop", 20 * 20); // tempo de 20 em 20 segundos será executado
manager.createTask("tasknormal", 20);
// tasknormal é a function, e 20 é o tempo = 20 tiks
manager.createLoopTask("taskloop", 20); // tempo de 20 ticks será executado
// taskloop é a function

function tasknormal(currentTick){
Expand All @@ -9,4 +9,4 @@ function tasknormal(currentTick){

function taskloop(currentTick){
print('sou taskloop');
}
}

0 comments on commit 96a515b

Please sign in to comment.