public void Execute() { foreach (LogicEntity e in _stunTimers.GetEntities()) { if (e.stunTimer.timeLeft <= FixedMath.Create(3, 10)) { long acceleration = FixedMath.Lerp( e.stunMovement.accelerationTime, e.groundMovement.accelerationTime, e.stunTimer.timeLeft.Mul(FixedMath.Create(3, 10))); e.ReplaceCurrentMovementX(0, acceleration, e.currentMovementX.refSpeed); } e.ReplaceStunTimer(e.stunTimer.timeLeft - GameController.DELTA_TIME); } }