public void ClearAnimation()
 {
     animation = null;
     frame     = 0;
     speed     = 20.0f;
     progress  = 0;
 }
 public void SetAnimation(StanceAnimation newAnimation)
 {
     if (animation == null || animation.Type != newAnimation.Type)
     {
         animation = newAnimation;
         this.SetStance(newAnimation[0].stance);
         frame     = 0;
         speed     = newAnimation[0].speed;
         startYoff = yoffset;
         endYoff   = newAnimation[0].yoffset;
     }
 }