回答編集履歴
1
Vector3になっていたのでVector2に編集しました。
answer
CHANGED
@@ -6,5 +6,5 @@
|
|
6
6
|
// ...
|
7
7
|
|
8
8
|
// ↑の1行を ↓こう
|
9
|
-
rb.velocity = movement + new
|
9
|
+
rb.velocity = movement + new Vector2(0, rb.velocity.y);
|
10
10
|
```
|