回答編集履歴
1
補足
answer
CHANGED
@@ -8,4 +8,7 @@
|
|
8
8
|
※ Unityのバージョン違いとかならすいません
|
9
9
|
|
10
10
|
GameObject.GetComponent
|
11
|
-
[https://docs.unity3d.com/ja/current/ScriptReference/GameObject.GetComponent.html](https://docs.unity3d.com/ja/current/ScriptReference/GameObject.GetComponent.html)
|
11
|
+
[https://docs.unity3d.com/ja/current/ScriptReference/GameObject.GetComponent.html](https://docs.unity3d.com/ja/current/ScriptReference/GameObject.GetComponent.html)
|
12
|
+
|
13
|
+
Rigidbody2D rbody; と rbody = GetComponent<Rigidbody2D>();それぞれのはたらきについて
|
14
|
+
[https://teratail.com/questions/342273](https://teratail.com/questions/342273)
|