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