You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
16 lines
248 B
GDScript
16 lines
248 B
GDScript
|
|
extends Spatial
|
|
|
|
|
|
func _on_pause_pressed():
|
|
get_node("pause_popup").set_exclusive(true)
|
|
get_node("pause_popup").popup()
|
|
get_scene().set_pause(true)
|
|
|
|
|
|
func _on_unpause_pressed():
|
|
get_node("pause_popup").hide()
|
|
get_scene().set_pause(false)
|
|
|
|
|