void Update() { if (inputProvider.IsJump()) { Jump(); } _rigidbody.AddForce(new Vector3(inputProvider.GetHorizontal(), 0, inputProvider.GetVertical())); }