public void Run() { if (_controller.isGrounded) { float x = _movementInput.MovementX(); float z = _movementInput.MovementY(); _playerMovement = transform.right * x + transform.forward * z; _controller.Move(_playerMovement * _speed * Time.deltaTime); } }