UnityBiz/Assets/scripts/Movement/PlayerMovementController.Jump.cs
adamwi1000 b854205dcb test
2024-08-02 06:41:41 +02:00

15 lines
338 B
C#

using UnityEngine;
using UnityEngine.InputSystem;
namespace Player.Movement
{
public partial class PlayerMovementController
{
private void Jump(InputAction.CallbackContext ctx)
{
if (!IsGrounded) return;
_rigidbody.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
}
}
}