1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2025-02-04 12:28:35 +00:00

Added AudioBus. SFX Vol slider now works

This commit is contained in:
hpham474
2021-11-07 20:33:07 -06:00
parent 9929aab354
commit 388fcb9483
11 changed files with 65 additions and 35 deletions

View File

@@ -0,0 +1,17 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
var _errno = 0
_errno += AudioBus.connect("button_clicked", self, "_button_clicked")
func _button_clicked():
$buttonSFX.play()
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass