feat (slowdown): reduce the animation speed when in the slowdown area

This commit is contained in:
Pierre Ryssen
2026-05-01 22:04:56 +02:00
parent 94c28dca2f
commit 203f3e548b
2 changed files with 12 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ public class SlowdownArea : MonoBehaviour
isInZone = false;
timer = 0f;
player.ApplySlow(1f);
player.ApplyAnimationSlow(1f);
jump.JumpForce = baseJump;
}
}
@@ -46,5 +47,6 @@ public class SlowdownArea : MonoBehaviour
float t = Mathf.Clamp(timer * slowSpeed, 0f, 1f);
float multiplicator = Mathf.Lerp(1f, maxSlow, t);
player.ApplySlow(multiplicator);
player.ApplyAnimationSlow(multiplicator);
}
}