diff --git a/Assets/game/player/scripts/PlayerMovement.cs b/Assets/game/player/scripts/PlayerMovement.cs index 13f88dd..a008991 100644 --- a/Assets/game/player/scripts/PlayerMovement.cs +++ b/Assets/game/player/scripts/PlayerMovement.cs @@ -34,6 +34,12 @@ public class PlayerMovement : MonoBehaviour InputActions.Player.Move.performed += ctx => { _movementInputNormalized = ctx.ReadValue(); + _movementInputNormalized.x = _movementInputNormalized.x switch + { + > 0 => 1, + < 0 => -1, + _ => 0 + }; _movementInput = _movementInputNormalized * _speed; }; InputActions.Player.Move.canceled += ctx =>