The_Dark_Side_of_Earth/enemies/boss/destroy_area.gd

6 lines
110 B
GDScript3
Raw Permalink Normal View History

2025-09-18 18:10:44 +02:00
extends Area2D
# Attach this to an object to make it destructible
2025-09-18 18:10:44 +02:00
func destroy():
get_parent().queue_free()