Unity Input.GetKeyDown(KeyCode.Space) not detecting key Press
问题 I'm learning Unity but my key press isn't being detected using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public Rigidbody myBody; private float time = 0.0f; private bool isMoving = false; private bool isJumpPressed = false; void Start(){ myBody = GetComponent<Rigidbody>(); } void Update() { isJumpPressed = Input.GetKeyDown(KeyCode.Space); Debug.Log(isJumpPressed); } void FixedUpdate(){ if(isJumpPressed){ myBody.velocity =