5 lines
158 B
GDScript
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()
|