mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 06:59:03 -06:00
onExit call for exiting prematurely
This commit is contained in:
parent
8a459b68ba
commit
1dfe68ccff
@ -129,6 +129,7 @@ function GameScene:onInputPress(e)
|
||||
if self.paused then pauseBGM()
|
||||
else resumeBGM() end
|
||||
elseif e.input == "menu_back" then
|
||||
self.game:onExit()
|
||||
scene = ModeSelectScene()
|
||||
elseif e.input and string.sub(e.input, 1, 5) ~= "menu_" then
|
||||
self.inputs[e.input] = true
|
||||
|
Loading…
Reference in New Issue
Block a user