using System;
using System.Collections.Generic;
using UnityEngine;
public class Program
{
private bool keyDown = false;
void Update()
keyDown = Input.GetKeyDown(KeyCode.Space);
}
void Jump()
if(!isJumping && keyDown)
isJumping = true;
//tähän addforce