8 lines
192 B
GDScript
8 lines
192 B
GDScript
extends Node2D
|
|
|
|
@export var spawner: Node2D
|
|
|
|
func _body_entered_for_multiple(body: Node2D) -> void:
|
|
if body.is_in_group("asteroid") and body.get("is_firt_entree") == false:
|
|
spawner.spawn()
|