summaryrefslogtreecommitdiffhomepage
path: root/not/SceneManager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/SceneManager.lua')
-rw-r--r--not/SceneManager.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/not/SceneManager.lua b/not/SceneManager.lua
index c9a8e20..c076448 100644
--- a/not/SceneManager.lua
+++ b/not/SceneManager.lua
@@ -18,6 +18,11 @@ function SceneManager:addScene (scene)
return scene
end
+-- Not nice, not nice.
+function SceneManager:removeTopScene ()
+ table.remove(self.scenes, #self.scenes)
+end
+
function SceneManager:getAllScenes ()
return self.scenes
end