Is there any way I can make this code that I’m using check twice if space bar was pressed.
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
void Update() {
if (Input.GetKeyDown(KeyCode.Space))
print("space key was pressed");
}
}