I want to press a button and detect if this has happened as soon as I pressed the button.
These functions only detect a key press if I release the button and both seem to be the same?
Input.GetButtonUp or Input.GetButtonDown
void Update () {
if (Input.GetButtonDown("Jump"))
{
Debug.Log("Space bar pressed");
}
}