DuckRun/scenes/easteregg/Spawner/easteregg_spawner.gd

10 lines
211 B
GDScript3
Raw Permalink Normal View History

2024-10-01 15:56:30 +02:00
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()