public void SetMix(String fromName, String toName, float duration)
{
Animation from = skeletonData.FindAnimation(fromName);
if (from == null)
{
throw new ArgumentException("Animation not found: " + fromName);
}
Animation to = skeletonData.FindAnimation(toName);
if (to == null)
{
throw new ArgumentException("Animation not found: " + toName);
}
SetMix(from, to, duration);
}