public void set_animator (string source_state_name, string target_state_name, Animator? animator)
Warning: set_animator is deprecated since 1.12.
Specifies a Animator to be used when transitioning between the two named states.
animator allows specifying a transition between the state that is more elaborate than the basic transitions allowed by the
tweening of properties defined in the State keys.
null it will unset an existing animator.
State will take a reference on the passed
animator, if any
a State instance.
the name of a source state
the name of a target state