/// <summary> /// Plays right away the animation with the specified name, instantly removing all other blended animations. /// </summary> /// <param name="name">The animation name.</param> public PlayingAnimation Play(string name) { playingAnimations.Clear(); var playingAnimation = new PlayingAnimation(name, Animations[name]) { CurrentTime = TimeSpan.Zero, Weight = 1.0f }; playingAnimations.Add(playingAnimation); return(playingAnimation); }