Here is the code. I just want to make it so that the player can’t just keep jumping up and up.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Jump : MonoBehaviour
{
public CharacterController cc;
public float gravity = -9.81f;
public float gravityScale = 1;
public float jumpHeight = 4;
public float groundDistance = 0.4f;
how would I go about makin space do nothing? also with the code tags, sorry about that, that is just how my brain has to have the code, so i don’t mess up