fix AttackHoldRelease timing

cosmonaut 2024-02-03 00:40:29 -08:00
parent d986b3013f
commit 4cedf768f7
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ namespace MoonWorks.Math
{
return Interp(start, hold, time, attackDuration, Function.Get(attackEasingFunction));
}
else if (time >= attackDuration && time < holdDuration)
else if (time >= attackDuration && time < attackDuration + holdDuration)
{
return hold;
}
@ -93,7 +93,7 @@ namespace MoonWorks.Math
{
return Interp(start, hold, time, attackDuration, Function.Get(attackEasingFunction));
}
else if (time >= attackDuration && time < holdDuration)
else if (time >= attackDuration && time < attackDuration + holdDuration)
{
return hold;
}