13 lines
170 B
GDScript3
13 lines
170 B
GDScript3
|
class_name PlaySound
|
||
|
extends Action
|
||
|
|
||
|
export(NodePath) var audioStreamPlayer
|
||
|
|
||
|
func _ready():
|
||
|
onTrigger()
|
||
|
|
||
|
|
||
|
func onTrigger():
|
||
|
get_node( audioStreamPlayer ).play()
|
||
|
|