diff --git a/sonic-radiance.love/core/modules/scenes.lua b/sonic-radiance.love/core/modules/scenes.lua index 7559768..83c9306 100644 --- a/sonic-radiance.love/core/modules/scenes.lua +++ b/sonic-radiance.love/core/modules/scenes.lua @@ -56,6 +56,10 @@ function Scene:clear() -- TODO: send automatic cleanups to the different elements of the scene end +function Scene:restored() + +end + -- UPDATE FUNCTIONS -- Handle stuff that happens every steps diff --git a/sonic-radiance.love/core/scenemanager.lua b/sonic-radiance.love/core/scenemanager.lua index a760f26..1038b64 100644 --- a/sonic-radiance.love/core/scenemanager.lua +++ b/sonic-radiance.love/core/scenemanager.lua @@ -54,6 +54,7 @@ function SceneManager:setStoredScene(name) if storedScene ~= nil then self.currentScene = storedScene self.storage[name] = nil + self.currentScene:restored() end end