Global Sounds system
This commit is contained in:
parent
5677971bf0
commit
ba3306c04c
15 changed files with 232 additions and 1 deletions
11
scripts/global_sound_player/global_sound_player.gd
Normal file
11
scripts/global_sound_player/global_sound_player.gd
Normal file
|
@ -0,0 +1,11 @@
|
|||
@tool
|
||||
@icon("global_sound_player.svg")
|
||||
class_name GlobalSoundPlayer
|
||||
extends Node
|
||||
|
||||
|
||||
@export_custom(0, "global_sound") var sound: StringName
|
||||
|
||||
|
||||
func play() -> void:
|
||||
GlobalSounds.play_sound(sound)
|
Loading…
Add table
Add a link
Reference in a new issue