diff --git a/sonic-radiance.love/core/scenemanager.lua b/sonic-radiance.love/core/scenemanager.lua index 60c5a79..d2b44eb 100644 --- a/sonic-radiance.love/core/scenemanager.lua +++ b/sonic-radiance.love/core/scenemanager.lua @@ -41,6 +41,10 @@ function SceneManager:setScene(scene) self.nextScene = scene end +function SceneManager:haveStoredScene(name) + return (self.storage[name] ~= nil) +end + function SceneManager:storeCurrentScene(name) self.storage[name] = self.currentScene end