diff --git a/dialog/first_scene.txt b/dialog/first_scene.txt index 2ab5540..4ccd176 100644 --- a/dialog/first_scene.txt +++ b/dialog/first_scene.txt @@ -1 +1,2 @@ ... Looking around, it definitely wasn't time to get up just yet. +> SWITCH_SCENE [MAIN_MENU] diff --git a/game.gd b/game.gd index 1ea72bf..f93638d 100644 --- a/game.gd +++ b/game.gd @@ -99,7 +99,8 @@ func switch_scene_to(scene_path): yield(transition, "on_transition_time") SceneSwitcher.goto_scene(scene_path) yield(transition, "on_transition_completed") - SceneSwitcher.current_scene.on_scene_start() + if SceneSwitcher.current_scene.has_method("on_scene_start"): + SceneSwitcher.current_scene.on_scene_start() func _ready(): pass \ No newline at end of file