mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-23 16:14:19 +00:00
17 lines
221 B
GDScript3
17 lines
221 B
GDScript3
|
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()
|