summaryrefslogtreecommitdiffhomepage
path: root/not/SceneManager.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-11 01:21:31 +0200
committerAki <nthirtyone@gmail.com>2017-07-11 01:21:31 +0200
commit4e69182a6d36966847430f01b440a9cdac0e4cdc (patch)
treeb2d29a02e2cd10929a3f91926147a882b47fb42d /not/SceneManager.lua
parent0b3de32ee8b9d79d7b818a6742ab577ff47525e6 (diff)
downloadroflnauts-4e69182a6d36966847430f01b440a9cdac0e4cdc.zip
roflnauts-4e69182a6d36966847430f01b440a9cdac0e4cdc.tar.gz
roflnauts-4e69182a6d36966847430f01b440a9cdac0e4cdc.tar.bz2
Moved scene managment to SceneManager (non-existant)
Diffstat (limited to 'not/SceneManager.lua')
-rw-r--r--not/SceneManager.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/not/SceneManager.lua b/not/SceneManager.lua
new file mode 100644
index 0000000..0a6cb4b
--- /dev/null
+++ b/not/SceneManager.lua
@@ -0,0 +1,10 @@
+-- Pretend you didn't see this
+-- This is work for scene manager
+-- TODO: Create SceneManager or similar class.
+Scene = nil
+function changeScene (scene)
+ if Scene ~= nil then
+ Scene:delete()
+ end
+ Scene = scene
+end