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); }
void OnActivateDown() { IsPressed = true; pressedAnimation.Direction = AnimationDirection.Forward; pressedAnimation.StartAnimation(); }
public void Reset() { rotationValue.StartAnimation(); fadeInAnim.StartAnimation(); }