go back to menu for now

This commit is contained in:
Robin Hübner 2018-09-21 20:25:05 +02:00
parent 8ec1ec6ac2
commit c64a7aee5d
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1,2 @@
<BRAIN> ... Looking around, it definitely wasn't time to get up just yet. <BRAIN> ... Looking around, it definitely wasn't time to get up just yet.
> SWITCH_SCENE [MAIN_MENU]

View File

@ -99,6 +99,7 @@ func switch_scene_to(scene_path):
yield(transition, "on_transition_time") yield(transition, "on_transition_time")
SceneSwitcher.goto_scene(scene_path) SceneSwitcher.goto_scene(scene_path)
yield(transition, "on_transition_completed") yield(transition, "on_transition_completed")
if SceneSwitcher.current_scene.has_method("on_scene_start"):
SceneSwitcher.current_scene.on_scene_start() SceneSwitcher.current_scene.on_scene_start()
func _ready(): func _ready():