14 lines
303 B
GDScript
14 lines
303 B
GDScript
extends ProgressBar
|
|
class_name InteractionBar
|
|
|
|
signal interaction_finished
|
|
|
|
func _ready() -> void:
|
|
var tween = get_tree().create_tween()
|
|
tween.tween_property(self, "value", 100, 3)
|
|
tween.tween_callback(_cleanup_gather)
|
|
|
|
func _cleanup_gather() -> void:
|
|
interaction_finished.emit()
|
|
self.queue_free()
|