Added DirectionalParticles and fixed the ElapsedNormalized of Timer.

This commit is contained in:
Michel Fedde 2021-04-01 22:06:36 +02:00
parent 01998d78dc
commit 6cb1fea19a
4 changed files with 25 additions and 4 deletions

View file

@ -18,6 +18,7 @@ namespace SM.Base.Drawing.Particles
where TTransform : GenericTransformation, new()
where TDirection : struct
{
/// <summary>
/// The amount of particles
/// </summary>

View file

@ -56,7 +56,7 @@ namespace SM.Base.Time
{
base.Ticking(context);
ElapsedNormalized = Elapsed / Target;
ElapsedNormalized = Math.Min(Elapsed / Target, 1);
if (ElapsedNormalized >= 1) Stopping(context);
}