11 lines
267 B
GDScript
11 lines
267 B
GDScript
extends Node3D
|
|
|
|
@onready var animation_tree: AnimationTree = %AnimationTree
|
|
@onready var animation_player: AnimationPlayer = $AnimationPlayer
|
|
|
|
func hurt() -> void:
|
|
animation_tree.set("parameters/OneShot/request", true)
|
|
|
|
func die() -> void:
|
|
animation_player.pause()
|