[gd_resource type="AnimationNodeStateMachine" load_steps=10 format=3 uid="uid://dj0blope85bg7"]

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_w2cv7"]
animation = &"basic/death"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_h0rfo"]
animation = &"basic/eating"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_nog33"]
animation = &"basic/stand"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_g2uel"]
animation = &"basic/walk"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_vxhht"]
advance_mode = 2

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_r8rju"]
xfade_time = 0.5
break_loop_at_end = true
switch_mode = 2
advance_mode = 2
advance_expression = "can_process()"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_y2ivb"]
xfade_time = 0.5
break_loop_at_end = true
switch_mode = 2
advance_mode = 2
advance_expression = "get(\"isEating\") == true and can_process()"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_7d3k4"]
xfade_time = 0.5
advance_mode = 2
advance_expression = "get(\"isEating\") == true"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_kk4wi"]
xfade_time = 0.5
advance_mode = 2
advance_expression = "get(\"isEating\") == false"

[resource]
states/Death/node = SubResource("AnimationNodeAnimation_w2cv7")
states/Death/position = Vector2(778, 100)
states/Eat/node = SubResource("AnimationNodeAnimation_h0rfo")
states/Eat/position = Vector2(575, 185)
states/End/position = Vector2(977, 90)
states/Idle/node = SubResource("AnimationNodeAnimation_nog33")
states/Idle/position = Vector2(366, 100)
states/Walk/node = SubResource("AnimationNodeAnimation_g2uel")
states/Walk/position = Vector2(575, 35)
transitions = ["Start", "Idle", SubResource("AnimationNodeStateMachineTransition_vxhht"), "Idle", "Walk", SubResource("AnimationNodeStateMachineTransition_r8rju"), "Idle", "Eat", SubResource("AnimationNodeStateMachineTransition_y2ivb"), "Walk", "Eat", SubResource("AnimationNodeStateMachineTransition_7d3k4"), "Eat", "Walk", SubResource("AnimationNodeStateMachineTransition_kk4wi")]
graph_offset = Vector2(120, -30)
