public void SetAnimation(SpriteAnimation animation)
 {
     CurrentAnimation = animation;
     Time = 0.0f;
     currentAnimationFrameIndex = 0;
 }