src/scenemanager: update the scene's assets before the scene

This commit is contained in:
Kazhnuz 2019-01-28 14:01:08 +01:00
parent 2efe98b407
commit eb6fffb571

View file

@ -34,6 +34,7 @@ function SceneManager:update(dt)
if (self.currentScene ~= nil) then if (self.currentScene ~= nil) then
local keys = self.controller.input.keys local keys = self.controller.input.keys
self.currentScene.keys = keys self.currentScene.keys = keys
self.currentScene.assets:update(dt)
self.currentScene:update(dt) self.currentScene:update(dt)
end end
end end