diff options
Diffstat (limited to 'Spatial.gd')
| -rw-r--r-- | Spatial.gd | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -166,6 +166,9 @@ func _process(_delta): text += ":%02d" % seconds $CanvasLayer/cc/hb/time_left.text = text + if Input.is_action_just_released("ui_escape"): + go_back() + func _on_box_timeout(): var team @@ -184,6 +187,8 @@ func start_game(): $game_time.start(120) func go_back(): + var mainmenu = load("res://mainmenu.tscn").instance() + get_tree().root.add_child(mainmenu) get_tree().root.remove_child(self) func set_players(players): |
