Unity3d之按键 if (Input.GetKeyDown(KeyCode.A)){ Debug.Log("您按下了A键"); } if (Input.GetKeyUp(KeyCode.A)) { Debug.Log("您抬起了A键"); }