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,13 +28,17 @@ 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
|
||||||
-- Print and log debug string
|
-- Print and log debug string
|
||||||
|
|
Loading…
Reference in a new issue