void Update() { // Read the jump input in Update so button presses aren't missed. if (CrossPlatformInput.GetButtonDown("Jump")) jump = true; }