Unity3d之按键时间:2024-01-10 22:10:08if (Input.GetKeyDown(KeyCode.A)){ Debug.Log("您按下了A键"); } if (Input.GetKeyUp(KeyCode.A)) { Debug.Log("您抬起了A键"); }