11 lines
217 B
GDScript
11 lines
217 B
GDScript
extends Area2D
|
|
|
|
@onready var timer: Timer = $Timer
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
timer.connect("timeout", _despawn)
|
|
|
|
|
|
func _despawn() -> void:
|
|
queue_free()
|