书山有路勤为径
void InputKeyBoard() { if (Input.GetKeyDown (KeyCode.W)) { //jump up } if (Input.GetKeyDown (KeyCode.S)) { //roll } if (Input.GetKeyDown (KeyCode.A)) { //jump left } if (Input.GetKeyDown (KeyCode.D)) { //jump right } }