check >= on tween duration
parent
e93f4f09bb
commit
96800cc348
|
@ -214,7 +214,9 @@ namespace MoonWorks.Audio
|
||||||
float value;
|
float value;
|
||||||
audioTween.Time += delta;
|
audioTween.Time += delta;
|
||||||
|
|
||||||
if (audioTween.Time > audioTween.Duration)
|
var finished = audioTween.Time >= audioTween.Duration;
|
||||||
|
|
||||||
|
if (finished)
|
||||||
{
|
{
|
||||||
value = audioTween.End;
|
value = audioTween.End;
|
||||||
}
|
}
|
||||||
|
@ -252,7 +254,7 @@ namespace MoonWorks.Audio
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return audioTween.Time > audioTween.Duration;
|
return finished;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void WakeThread()
|
internal void WakeThread()
|
||||||
|
|
Loading…
Reference in New Issue