private string GetNextAnimation() { List <string> animations = currentAnimator.GetAnimations().ToList(); int index = animations.IndexOf(currentAnimator.CurrentAnimation.Name); ++index; if (index >= animations.Count) { index = 0; } return(animations[index]); }