game: fix new game button in pause menu
This commit is contained in:
@@ -5,6 +5,7 @@ extends Node2D
|
|||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
GlobalConst.sig_debug_camera_zoom.connect(debug_zoom)
|
GlobalConst.sig_debug_camera_zoom.connect(debug_zoom)
|
||||||
|
Engine.time_scale = 1.0
|
||||||
|
|
||||||
|
|
||||||
func _unhandled_input(event: InputEvent) -> void:
|
func _unhandled_input(event: InputEvent) -> void:
|
||||||
|
@@ -28,4 +28,5 @@ func _on_exit_button_pressed() -> void:
|
|||||||
|
|
||||||
|
|
||||||
func _on_new_game_btuton_pressed() -> void:
|
func _on_new_game_btuton_pressed() -> void:
|
||||||
pass # Replace with function body.
|
var new_scene = load("res://scenes/main.tscn")
|
||||||
|
get_tree().change_scene_to_packed(new_scene)
|
||||||
|
Reference in New Issue
Block a user