Class DelayAnimation
A delay animation that does nothing for a specified duration, then completes. Useful for sequencing animations with pauses.
public class DelayAnimation : IAnimation
- Inheritance
-
DelayAnimation
- Implements
- Inherited Members
Constructors
DelayAnimation(double, Action?)
Creates a new delay animation.
public DelayAnimation(double duration, Action? onComplete = null)
Parameters
Properties
IsComplete
Gets whether the animation has completed.
public bool IsComplete { get; }
Property Value
Methods
Cancel()
Called when the animation completes or is cancelled.
public void Cancel()
Update(double)
Updates the animation with the elapsed time since the last frame.
public void Update(double deltaTime)
Parameters
deltaTimedoubleTime elapsed since last update in seconds.