Sound effects
This commit is contained in:
parent
6ea21b3181
commit
6671b455c4
17 changed files with 94 additions and 6 deletions
|
@ -6,11 +6,16 @@ func set_paused(value):
|
|||
paused = value
|
||||
get_tree().paused = paused
|
||||
visible = paused
|
||||
if value:
|
||||
SoundFx.play_fx("Pause")
|
||||
else:
|
||||
SoundFx.play_fx("Unpause", 1, -30)
|
||||
|
||||
func _on_ResumeButton_pressed():
|
||||
self.paused = false
|
||||
|
||||
func _on_QuitButton_pressed():
|
||||
SoundFx.play_fx("Click")
|
||||
get_tree().quit()
|
||||
|
||||
func _process(_delta):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue