feat: add a callback to restored scenes
This commit is contained in:
parent
d611f3214c
commit
c8204f044f
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ function SceneManager:setStoredScene(name)
|
|||
if storedScene ~= nil then
|
||||
self.currentScene = storedScene
|
||||
self.storage[name] = nil
|
||||
self.currentScene:restored()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue