mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-01-04 14:49:41 +01:00
11 lines
250 B
GDScript
11 lines
250 B
GDScript
extends "res://state_machine/state.gd"
|
|
|
|
# Initialize the state. E.g. change the animation.
|
|
func enter():
|
|
owner.set_dead(true)
|
|
owner.get_node("AnimationPlayer").play("die")
|
|
|
|
|
|
func _on_animation_finished(_anim_name):
|
|
emit_signal("finished", "dead")
|