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,12 +28,16 @@ local lovebird = require(cwd .. "libs.lovebird")
function DebugSystem:new(controller, active) function DebugSystem:new(controller, active)
self.controller = controller self.controller = controller
lovebird.update()
self.active = active or false self.active = active or false
if (self.active) then
lovebird.update()
end
end end
function DebugSystem:update(dt) function DebugSystem:update(dt)
if (self.active) then
lovebird.update(dt) lovebird.update(dt)
end
end end
-- PRINT FUNCTIONS -- PRINT FUNCTIONS