first_anniversary_godot_jam/scripts/Library/Actions/PlaySound.gd

13 lines
170 B
GDScript

class_name PlaySound
extends Action
export(NodePath) var audioStreamPlayer
func _ready():
onTrigger()
func onTrigger():
get_node( audioStreamPlayer ).play()