用input控制物体移动 Vector2 pos = this.transform.position; pos.x += Input.GetAxis("Horizontal")*Time.deltaTime; pos.y += Input.GetAxis("Vertical") * Time.deltaTime; this.transform.position = pos;