Unity3d之按键

if (Input.GetKeyDown(KeyCode.A)){
 Debug.Log("您按下了A键");
}

if (Input.GetKeyUp(KeyCode.A))
{
            Debug.Log("您抬起了A键");
}
posted @ 2016-06-30 22:10  Shiyu_Huang  阅读(228)  评论(0)    收藏  举报