1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-22 07:44:17 +00:00
swear-jar/converters/working_timer.gd

17 lines
221 B
GDScript3
Raw Normal View History

2023-10-14 00:27:55 +00:00
extends Timer
class_name WorkingTimer
@export var working_sound: AudioStreamPlayer2D
func do_start():
if working_sound:
working_sound.play()
start()
func _on_timeout():
if working_sound:
working_sound.stop()