回答編集履歴

1

コード修正

2022/08/01 05:18

投稿

YOshim
YOshim

スコア1085

test CHANGED
@@ -9,8 +9,6 @@
9
9
  moveDirection *= speed;
10
10
  }
11
11
  if(jumpCount < 3 && Input.GetKeyDown(KeyCode.Space)){
12
- h = Input.GetAxis("Horizontal");
13
- v = Input.GetAxis("Vertical");
14
12
  moveDirection = new Vector3(h,0,v);
15
13
  moveDirection = transform.TransformDirection(moveDirection);
16
14
  moveDirection *= speed;