DuckRun/scenes/easteregg/Spawner/easteregg_spawner.gd
2024-10-01 15:56:30 +02:00

9 lines
211 B
GDScript

extends Marker2D
func _spawn() -> void:
var easteregg = preload("res://scenes/easteregg/easteregg.tscn").instantiate()
add_child(easteregg)
func del_all():
for child in get_children():
child.queue_free()