public void Play(KeyframeAnimation <T> animation, bool setDefault)
 {
     _currentAnimation  = animation;
     _frameTime         = 0;
     _currentFrameIndex = 0;
     if (setDefault)
     {
         _defaultAnimation = animation;
     }
 }
 public override void Reset()
 {
     _currentAnimation  = _defaultAnimation;
     _frameTime         = 0;
     _currentFrameIndex = 0;
 }
 public KeyframeAnimator(Setter <T> setter, bool loop, KeyframeAnimation <T> defaultAnimation) : base(setter, loop)
 {
     _defaultAnimation = defaultAnimation;
     _currentAnimation = defaultAnimation;
 }