newlon/scripts/components/zombie_death_handler.gd
2025-08-09 21:35:02 +05:00

5 lines
158 B
GDScript

extends Node
func _on_animation_tree_animation_finished(anim_name: StringName) -> void:
if anim_name.split("/")[1] == "death":
get_parent().deconstruct()