2024-04-20 14:16:44 +00:00
|
|
|
class_name PlaySound
|
|
|
|
extends Action
|
|
|
|
|
|
|
|
export(NodePath) var audioStreamPlayer
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
onTrigger()
|
|
|
|
|
|
|
|
|
|
|
|
func onTrigger():
|
2024-04-20 16:02:17 +00:00
|
|
|
print("OnTrigger PlaySound")
|
|
|
|
# get_node( audioStreamPlayer ).play()
|
2024-04-20 14:16:44 +00:00
|
|
|
|