Files
MonoGame.Extended/Source/MonoGame.Extended.Tweening/DelayTween.cs
T
2017-03-14 21:53:19 +10:00

20 lines
423 B
C#

using MonoGame.Extended.Animations;
namespace MonoGame.Extended.Tweening
{
public class DelayTween : Animation
{
public DelayTween(float duration)
: base(null, true)
{
Duration = duration;
}
public float Duration { get; set; }
protected override bool OnUpdate(float deltaTime)
{
return CurrentTime >= Duration;
}
}
}