feat(exemple): add a transition when a scene is selected
This commit is contained in:
parent
4b24579070
commit
84919719f8
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue