Class AnimatorExtension
Methods
WaitUntilFinished(Animator self, [bool disableWhenFinished = false])
Wait until the current state is finished playing.
his method will only take effect if the current state does not have any transition (using Animator as Animation).
public static Coroutine WaitUntilFinished(Animator self, [bool disableWhenFinished = false])