質問編集履歴
1
コピペミスをしていました。GetComponent<Rigidbody>→GetComponent<Rigidbody>()
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
```C#
|
16
16
|
|
17
|
-
player.GetComponent<Rigidbody>.velocity = Vector3.zero;
|
17
|
+
player.GetComponent<Rigidbody>().velocity = Vector3.zero;
|
18
18
|
|
19
19
|
```
|
20
20
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
```C#
|
28
28
|
|
29
|
-
player.GetComponent<Rigidbody2D>.velocity = Vector3.zero;
|
29
|
+
player.GetComponent<Rigidbody2D>().velocity = Vector3.zero;
|
30
30
|
|
31
31
|
//(playerオブジェクトにRigidbody2Dをアタッチしております)
|
32
32
|
|