- new log function for debug

- clear metatable for the factory
This commit is contained in:
Alexey Gulev
2019-03-27 21:30:58 +01:00
parent 5e2dc34437
commit cb82acd5da
3 changed files with 126 additions and 113 deletions

View File

@@ -1,5 +1,6 @@
local M = {}
M.is_debug = false
M.button = {
IS_HOVER = true,
@@ -23,5 +24,12 @@ function M.play_sound(name)
-- override to play sound with name
end
function M.log(...)
if M.is_debug then
print("[Druid]: ", ...)
end
end
return M