Only Games Github «ULTIMATE · Overview»

using UnityEngine;

Here is the code

void Start() { rb = GetComponent<Rigidbody>(); } only games github

if (Input.GetButtonDown("Jump") && IsGrounded()) { rb.AddForce(new Vector3(0f, jumpForce, 0f), ForceMode.Impulse); } } using UnityEngine; Here is the code void Start()