SlimeoosOdyssey/godot/Models/slime.gd

10 lines
216 B
GDScript

extends Node3D
@onready var animation_state: AnimationNodeStateMachinePlayback = $AnimationTree.get("parameters/playback")
func walk():
animation_state.travel("Walk")
func idle():
animation_state.travel("Idle")