fixed issue #7
This commit is contained in:
@@ -11,9 +11,10 @@ signal closed()
|
||||
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("Pause"):
|
||||
if event.is_action_pressed("Pause") or event.is_action_pressed("Show Wave Preview"):
|
||||
queue_free()
|
||||
closed.emit()
|
||||
get_viewport().set_input_as_handled()
|
||||
|
||||
|
||||
func set_waves(waves: Array[WaveConfig], starting_wave_number: int) -> void:
|
||||
|
||||
Reference in New Issue
Block a user