private bool NextExists(AtomAnimationClip clip, string nextName) { if (nextName == AtomAnimation.RandomizeAnimationName) { return(true); } string group; if (AtomAnimation.TryGetRandomizedGroup(nextName, out group)) { return(true); } var next = animation.index.ByLayer(clip.animationLayer).FirstOrDefault(c => c.animationName == nextName); return(next != null); }