/// <summary> /// 地面移动 /// </summary> /// <param name="h"></param> /// <param name="v"></param> void GroundMove(float h, float v) { if (Speed != 0) { Rgbd.MovePosition(GameObjectInScene.transform.position + targetDirection * MoveSpeed * Time.deltaTime); } }
/// <summary> /// 地面移动 /// </summary> /// <param name="h"></param> /// <param name="v"></param> private void GroundMove() { // Speed = 4 if (moveSpeed > 1e-2) { Rgbd.MovePosition(GameObjectInScene.transform.position + targetDirection * 4 * Time.deltaTime); } }