add pause toggling
This commit is contained in:
@@ -137,6 +137,9 @@ func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("toggle_fullscreen"):
|
||||
fullscreen = not fullscreen
|
||||
|
||||
if event.is_action_pressed("toggle_pause"):
|
||||
get_tree().paused = not get_tree().paused
|
||||
|
||||
|
||||
func set_defaults() -> void:
|
||||
for property_name: StringName in _default_values.keys():
|
||||
|
||||
Reference in New Issue
Block a user