public virtual void AddNewAnimation(string name, Texture2D loadedTexture, Point frameOrigin, Point frameSize, uint frameCount, uint framesPerRow)
 {
     Animation2D newAnim = new Animation2D(loadedTexture, frameSize, frameCount, framesPerRow);
     newAnim.FrameOrigin = frameOrigin;
     this.AddAnimation(name, newAnim);
 }
 public virtual void AddAnimation(string animationName, Animation2D animation)
 {
     this.animations.Add(animationName, animation);
     if (this.currentAnimation == null)
     {
         this.currentAnimation = animation;
         this.currentAnimationName = animationName;
     }
 }