Unity3d之按键
if (Input.GetKeyDown(KeyCode.A)){
Debug.Log("您按下了A键");
}
if (Input.GetKeyUp(KeyCode.A)) { Debug.Log("您抬起了A键"); }
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/
if (Input.GetKeyDown(KeyCode.A)){
Debug.Log("您按下了A键");
}
if (Input.GetKeyUp(KeyCode.A)) { Debug.Log("您抬起了A键"); }