14 lines
346 B
GDScript
14 lines
346 B
GDScript
# AudioManager.gd
|
|
extends Node
|
|
var music_player # Reference to AudioStreamPlayer for background music
|
|
|
|
func _ready():
|
|
print("AudioManager loaded. Ready to play sounds.")
|
|
|
|
func play_sfx(sound_path: String):
|
|
# Logic to play a sound effect
|
|
pass
|
|
|
|
func play_music(stream: AudioStream):
|
|
# Logic to set and play background music
|
|
pass |