fix: only use lovebird in debug mode

This commit is contained in:
Kazhnuz 2021-04-03 19:59:41 +02:00
parent 4dc0cc2dd3
commit 5f18f79ed6

View file

@ -28,13 +28,17 @@ local lovebird = require(cwd .. "libs.lovebird")
function DebugSystem:new(controller, active)
self.controller = controller
lovebird.update()
self.active = active or false
if (self.active) then
lovebird.update()
end
end
function DebugSystem:update(dt)
if (self.active) then
lovebird.update(dt)
end
end
-- PRINT FUNCTIONS
-- Print and log debug string