menu sounds
This commit is contained in:
parent
098ab161de
commit
ba12787fcb
10 changed files with 63 additions and 16 deletions
12
objects/hud/menu_sounds.gd
Normal file
12
objects/hud/menu_sounds.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
extends Node
|
||||
|
||||
var can_play: bool = false
|
||||
|
||||
func play_select_sound():
|
||||
if can_play:
|
||||
$"%SelectSound".play()
|
||||
else:
|
||||
can_play = true
|
||||
|
||||
func play_confirm_sound():
|
||||
$"%ConfirmSound".play()
|
Loading…
Add table
Add a link
Reference in a new issue