blob: ea5617c06fac4a1a663aa7e958a6806a636e644a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
extends Spatial
func _on_pause_pressed():
get_node("pause_popup").set_exclusive(true)
get_node("pause_popup").popup()
get_tree().set_pause(true)
func _on_unpause_pressed():
get_node("pause_popup").hide()
get_tree().set_pause(false)
|