17 lines
453 B
GDScript
17 lines
453 B
GDScript
######################
|
|
### Jessist Script ###
|
|
######################
|
|
# This script is part of Jessist
|
|
# Jessist is licensed under GNU GPLv3
|
|
#
|
|
# This script manages all sound players
|
|
extends AudioStreamPlayer
|
|
|
|
func startSound(delay):
|
|
gameController.logCall("SoundPlayerScript","startSound",delay)
|
|
yield(get_tree().create_timer(delay),"timeout")
|
|
play(0)
|
|
|
|
func stopSound():
|
|
gameController.logCall("SoundPlayerScript","stopSound",null)
|
|
playing = false
|