Hey guys. I've been having trouble figuring out how to make an if statement that detects when the "enter" key is pressed. I wrote this simple script but it won't work. Any help?
function Update() {
if(Input.GetKeyDown (KeyCode.Enter))
{
Debug.Log("Enter");
}
}
↧