Removed unused variable
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
extends Control
|
||||
|
||||
signal startGame(path)
|
||||
signal startGame
|
||||
|
||||
var load_list = ["Back"]
|
||||
@export var level_folder = "res://Assets/Levels"
|
||||
@ -20,8 +20,8 @@ func _on_exit_pressed():
|
||||
|
||||
|
||||
func _on_start_pressed():
|
||||
emit_signal("startGame", "res://Assets/Levels/TestMapHospitalTextures.tscn")
|
||||
GlobalSettings.current_map = "res://Assets/Levels/TestMapHospitalTextures.tscn"
|
||||
emit_signal("startGame")
|
||||
|
||||
func _on_settings_pressed():
|
||||
pass # Replace with function body.
|
||||
@ -37,4 +37,4 @@ func _on_item_list_item_clicked(index, at_position, mouse_button_index):
|
||||
$VBoxContainer.show()
|
||||
else:
|
||||
GlobalSettings.current_map = "res://Assets/Levels/" + load_list[index]
|
||||
emit_signal("startGame", GlobalSettings.current_map)
|
||||
emit_signal("startGame")
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
extends Node3D
|
||||
|
||||
|
||||
func _on_pause_menu_paused():
|
||||
$"player".is_paused = true
|
||||
|
||||
func _on_pause_menu_unpaused():
|
||||
$"player".is_paused = false
|
||||
|
||||
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
extends Node
|
||||
|
||||
|
||||
|
||||
func _on_main_menu_start_game(path):
|
||||
func _on_main_menu_start_game():
|
||||
var game = load("res://Assets/game.tscn").instantiate()
|
||||
self.remove_child($"Main Menu")
|
||||
remove_child($"Main Menu")
|
||||
self.add_child(game)
|
||||
|
||||
Reference in New Issue
Block a user