fix: only use lovebird in debug mode
This commit is contained in:
parent
4dc0cc2dd3
commit
5f18f79ed6
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||||
lovebird.update(dt)
|
if (self.active) then
|
||||||
|
lovebird.update(dt)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- PRINT FUNCTIONS
|
-- PRINT FUNCTIONS
|
||||||
|
|
Loading…
Reference in a new issue