void FixedUpdate() { if (_player_Health.IsDead) { return; } _keyInput.KeyCheck(); _moveInput = _keyInput.MoveInput; _rigidbody2D.AddForce(_moveInput * _movementSpeed); _slowMovement.rigidbody2D = _rigidbody2D; //_rigidbody2D.velocity = _slowMovement.rigidbody2D.velocity; }
void Update() { _inputBehaviour.KeyCheck(); Animation(); }