If I'm not wrong, Godot supports Animation Trees to define the state machine of a character, just like Unity does. What is the difference between coding it or using the Godot built in Animation Tree option? I'm coming from Unity so there are things that I don't understand yet. Thanks!
The animation state machine is just for animation. It doesn't give you functions to initialize and clean up states, or the kind of functionality you need for a gameplay's finite state machine.