[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})
-- Timer instancing
function Timer.new()
return setmetatable({functions = {}, tween = Timer.tween}, Timer)
function Timer:new(args)
self = setmetatable(args or {}, self)
self.functions = {}
return self
end
return Timer

Loading…
Cancel
Save