コード例 #1
0
        public void IsRunning_When_Direction_Backward_With_Delay()
        {
            lv.Direction = AnimationDirection.Backward;
            lv.StartAnimation();

            lv.Loop = AnimationLoop.NoLoop;
            lv.Update(new GameTime(TimeSpan.Zero, TimeSpan.FromSeconds(0.1)));
            lv.IsRunning.Should().Be(true);

            lv.Update(new GameTime(TimeSpan.Zero, TimeSpan.FromSeconds(5.1)));
            lv.IsRunning.Should().Be(true);

            lv.Update(new GameTime(TimeSpan.Zero, TimeSpan.FromSeconds(7.1)));
            lv.IsRunning.Should().Be(false);
        }
コード例 #2
0
 void OnActivateDown()
 {
     IsPressed = true;
     pressedAnimation.Direction = AnimationDirection.Forward;
     pressedAnimation.StartAnimation();
 }
コード例 #3
0
 public void Reset()
 {
     rotationValue.StartAnimation();
     fadeInAnim.StartAnimation();
 }