0dbedd18fc
-=-=-=-=-=-=-=-=-=-=-=-=-=- *YOUR SOURCE MIGHT NOT WORK* For mor information on fix: https://github.com/okamstudio/godot/wiki/devel_scene_tree Other stuff: -Shower of bullets demo -Fixes all around
15 lines
246 B
GDScript
15 lines
246 B
GDScript
|
|
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)
|
|
|
|
|