11 lines
194 B
GDScript
11 lines
194 B
GDScript
@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)
|