feat(exemple): add a transition when a scene is selected

This commit is contained in:
Kazhnuz 2019-09-08 16:23:42 +02:00
parent 4b24579070
commit 84919719f8

View file

@ -130,6 +130,7 @@ end
function SceneWidget:action() function SceneWidget:action()
core.scenemanager:storeCurrentScene("mainmenu") core.scenemanager:storeCurrentScene("mainmenu")
core.scenemanager:prepareTransition()
self.newscene(self.args[1], self.args[2], self.args[3], self.args[4], self.args[5]) self.newscene(self.args[1], self.args[2], self.args[3], self.args[4], self.args[5])
end end