Update Timer

This commit is contained in:
Sabine Lim
2023-05-16 03:03:02 +10:00
parent 0c0d560ba3
commit ff6df82fca

View File

@@ -19,6 +19,10 @@ return function(name, basalt)
return self
end,
getTime = function(self)
return timer
end,
start = function(self)
if(timerIsActive)then
os.cancelTimer(timerObj)
@@ -43,6 +47,14 @@ return function(name, basalt)
return self
end,
setStart = function(self, start)
if (start == true) then
return self:start()
else
return self:cancel()
end
end,
onCall = function(self, func)
self:registerEvent("timed_event", func)
return self