mirror of
https://github.com/Insality/druid
synced 2025-09-28 10:32:20 +02:00
- new log function for debug
- clear metatable for the factory
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user