godot-space-escape/scenes/Astroid2.gd

4 lines
82 B
GDScript

extends RigidBody2D
func _on_VisibilityNotifier2D_screen_exited():
queue_free()