Only Games Github 🔖

private Rigidbody rb;

public class PlayerController : MonoBehaviour { public float speed = 5.0f; public float jumpForce = 10.0f; only games github

if (Input.GetButtonDown("Jump") && IsGrounded()) { rb.AddForce(new Vector3(0f, jumpForce, 0f), ForceMode.Impulse); } } private Rigidbody rb

Here is the code

void Start() { rb = GetComponent<Rigidbody>(); } public float jumpForce = 10.0f

using UnityEngine;

Epic Quest

only games github