public float moveSpeed = 5f; void Update() { float H = Input.GetAxis(“Horizontal”); float V = Input.GetAxis(“Vertical”); float Y = Input.GetAxis(“Jump”); transform.Translate(new Vector3(H, Y, V) * Time.deltaTime * moveSpeed, Space.World); } 另一种