godot animation state machine. Called by the state machine