回答編集履歴
1
コード修正
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;
|