/// <summary> /// Adds a sprite body modifier that alters some, but not all, of the body. <see cref="ICharacterSprite"/>s /// that do not support dynamic sprites treat this the same as <see cref="ICharacterSprite.SetBody"/>. /// </summary> /// <param name="bodyModifierName">The name of the sprite body modifier.</param> public void AddBodyModifier(string bodyModifierName) { var set = _skelManager.GetSet(bodyModifierName); set = SkeletonAnimation.CreateSmoothedSet(set, _skelAnim.Skeleton); var mod = new SkeletonAnimation(GetTime(), set); _skelAnim.AddModifier(mod); }