feat: add a way to know if a scene is stored
This commit is contained in:
parent
2ad4cf8182
commit
f12074d659
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue