//向上运动——Wif(Input.GetKey(KeyCode.W)){print("w");transform.Translate(Vector3.up * Time.deltaTime * 1);}//向下运动——Sif(Input.GetKey(KeyCode.S)){print("s");transform.Translate(Vector3.down * Time.deltaTime * 1);}//向左运动——Aif(Input.GetKey(KeyCode.A)){print("a");transform.Translate(Vector3.left * Time.deltaTime * 1);}//向右运动——Dif(Input.GetKey(KeyCode.D)){print("d");transform.Translate(Vector3.right * Time.deltaTime * 1);}