mirror of
https://codeberg.org/1414codeforge/gear.git
synced 2025-04-22 14:07:26 +02:00
[timer] Rework new() consistently with other classes.
This commit is contained in:
parent
d3129070d9
commit
2959abc4f6
@ -194,8 +194,11 @@ __index = function(tweens, key)
|
|||||||
end})
|
end})
|
||||||
|
|
||||||
-- Timer instancing
|
-- Timer instancing
|
||||||
function Timer.new()
|
function Timer:new(args)
|
||||||
return setmetatable({functions = {}, tween = Timer.tween}, Timer)
|
self = setmetatable(args or {}, self)
|
||||||
|
self.functions = {}
|
||||||
|
|
||||||
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
return Timer
|
return Timer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user