[timer] Rework new() consistently with other classes.

master
Lorenzo Cogotti 1 year ago
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…
Cancel
Save