mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
20 lines
423 B
C#
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;
|
|
}
|
|
}
|
|
} |