18 lines
453 B
GDScript3
18 lines
453 B
GDScript3
|
######################
|
||
|
### 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
|