Added DirectionalParticles and fixed the ElapsedNormalized of Timer.
This commit is contained in:
parent
01998d78dc
commit
6cb1fea19a
4 changed files with 25 additions and 4 deletions
|
|
@ -18,6 +18,7 @@ namespace SM.Base.Drawing.Particles
|
|||
where TTransform : GenericTransformation, new()
|
||||
where TDirection : struct
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The amount of particles
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue