working on blockout 4 - which should end up being level 1
This commit is contained in:
@@ -28,10 +28,11 @@ func _on_load_pressed() -> void:
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if Input.is_action_just_pressed("escape"):
|
||||
if paused:
|
||||
resume()
|
||||
else:
|
||||
pause()
|
||||
if player.is_on_floor():
|
||||
if paused:
|
||||
resume()
|
||||
else:
|
||||
pause()
|
||||
|
||||
func pause():
|
||||
paused = true
|
||||
|
||||
Reference in New Issue
Block a user