public void point() { /*here, i want when i press this button, the game will recognize that the LeftArrow button on the keyboard is being pressed */ Pressing = true; } public void pointerUpLeftArrow() { Pressing = false; }
public void point()
{ if ( Input.GetKey(KeyCode.LeftArrow) )
{
//Write the action you want when the key is pressed.
}
}